Add enable/disable switch to logging.
Cleanup exports. Move notification rules out

into a seperate module.
Create basic unit test for notificationmanager.