The Evolutionary Construction of Sleep