Sunrise/sunset, performance improvements, and widget prep