uses system titlebar now, less wackiness will maybe make the window behave better on certain systems (though still suspect that because we are not in a proper MainWindow things are freaking out).  Also fixed pattern edit bug.  And cleaned up quit() semantics a little to prevent crashing: this qtquick2applicationviewer sucks because it hides windowing events