Light sensor cleanup

Connects the light sensor to the timeout and startup preferences.
Also, some cleanup of the light sensor UI.