If insomnia is affecting your mental, emotional and physical health, then changing your lifestyle and habits can help you beat it without taking any medication.