Refactor ResourceManagerProvider to generic PluginContext for future hosting of additional singletons