Thinking pleasant thoughts and mindful meditation are two ways to bring rest to a busy sleep-time mind.