Rework all date / time related functions, removes global dates / times.
Remove many global variables, cleans some of the code base.
Uses switches to clean up Clock code.