rename plugin 'plugin' to 'pluginmanager' and update/cleanups stuff inside pluginmanager