We're actually working on this problem over at WakeMate.
Basically the solution is to sleep just enough to accumulate the number of sleep cycles you need to feel rested. We're building a tool to tell our users what that length of time is. I'll write up a post on the thought process/science behind it and put it up tomorrow.