Remove leftover pidfile support
Make all non-main functions static
Simplify daemon loop

Create separate functions for reading the ambient light sensor and
setting the screen and keyboard backlight values.  This makes it
easier to actually use the settings from the config file and
individually change the behavior of any of the functions.
Set values based on the status of the AC adaptor