What can insomniacs learn from sleep crises of centuries past? Eat onions.