Add new method to Plugin, which allows for checking wheter the plugin is
enabled.
PluginMetadata now takes additional parameter, pluginId, which should
define a unique id for the plugin.
More refactoring.