moved PluginError to plugin and fixed references
added code to connect to ui and plugin
Merge branch 'master' into dummy_engine to get updates