Major refactor and addition of unit tests

This is the first part of a number of commits to:

* get rid of the syslogngslave module
* get rid of the syslogngfix module
* separate responsibilities between syslogng and sunappserver modules