remove last friend class use

remove last friend class use by passing in TabManager object to
PluginRunner constructor and associated fixes