simple refactors to make things easier to test.
some refactoring with added tests
add valid wireing for tcp / udp switch
add unit test for start
add basic shutdown handling
Merge pull request #4 from CapillarySoftware/refactor_time

Refactor time, first initial working version with simple printout of syslog info