Fix pluginManager.loadPlugin, allow register of unnamed plugins.
The onLoad hook, called on successful script execution, will attempt to retrieve the plugin from the global object as a named plugin and fallback to unnamed plugin, i.e window[name].
The whole window[name] gimmick should eventually be revised and improved.