Implement more stuff in PluginManager, and also implement registering and unregistering already compiled plugins