Save main window state before destructor
Use Server and ClientSocket for RemoteProcess and ClipboardMonitor
Omit using QSharedPointer with forward declared types (Qt bug)
Use ClientSocket instead of QLocalSocket