Improvements to remote qlaunch and minor cleanup.