New logging module!
Made it possible to disable emailing and only log the events instead. For debugging.
Set up logging events for many of the modules.