Added Logger interface, threaded MainLogger and updated PluginLogger