Add debug code for plugin manager
Separate ajax interface loading from PluginManager