Rename PluginLoader to PluginManager
Few bug fixes, and rearrangements