Caffeine in coffee offers surprising health benefits, although energy drinks may be harmful. Here's what you need to know.