Here’s a primer on the science of sleep, all the things a nap can do for you, when to take them and how long they should be.