For millennia, people slept in two shifts – once in the evening, and once in the morning. But why? And how did the habit disappear?