If you want to make waking up a little easier, start by understanding what actually happens while you sleep.