add function to get a pointer to the TS MainWindow
support targetServer with spaces and fix crash
1.2.3

modularize, support quotes for plugin commands