Fix for plugin events being run multiple times

For every bean pluginManager is injected into as a dependency, the init method is called as it's passed in, triggering setConfigBean, which causes repeated calls to loadPlugins(). I added a flag (pluginsLoaded) which is checked in setConfigBean prior to calling loadPlugins.. hopefully this is an acceptable fix.