Added MainWindow for PluginAPI

+ added functions for Tabs in plugins API