syslog_ng: Rearrange methods between syslog-ng state and execution module.

It also adds the missing unit tests.
Merge pull request #86 from ihrwein/syslog-ng-fixes

syslog_ng: Rearrange methods between syslog-ng state and execution modul...