Depression and insomnia can create a vicious cycle, and it's important to treat both conditions. Here's how to do it.