Updated PluginManager to store Plugin instances with smart pointers.