I had lousy sleep habits, so I committed to 30 days of mindful rest. From a cozy mattress topper to a handy sleep tracker, here’s what helped me achieve sweet dreams.