First pass at screen on/off times. Also removes unused db field.

Closes #7 and makes some progress on #9.