Plugin interface
Fixed and tested basic error logging

* fixed call logger.err to logger.error
* tested that logger.error is called when an error is callbacked from an eventlistener
* tested that the runTasks callback recieves the error