finish pluginmanager

The plugin manager is finished. A new API was created to suit a required
feature, the 'configuration' API. This makes it easy to store
configurations using the preferences API. WARNING!! The pluginmanager
might not work very well, if at all, so use with caution.