Added datetime to file log statements.

Also created a util class with functions to format a date and pad strings, including unit tests.
Moved config to JSON
Fixed logging output
Added controller structure