What you eat—and when—could mean the difference between sound sleep or tossing and turning. Here are the secrets to a better night's sleep.