Added a LogProvider class as a first step towards decoupling PluginBase.
Command permissions should be less static.