Fix disabling of plugins not working correctly.
Implement constructing of plugins.
Remove PluginRegistry, lists have been moved to PluginLoader.