Initialise MythCoreContextPrivate::pluginmanager to NULL and add guards against leaks if SetPluginManager() is called twice
Rename pluginmanager to m_pluginmanager per coding standards