Changed from unique_ptr to shared_ptr plugin's configuration.
The loader needs to pass the configuration class into the plugin.