You can do better than sleeping pills or counting sheep. From free apps and wearable trackers to smart mattresses and climate ...