Email Record: A quantitative, theoretical framework for understanding mammalian sleep