Add option to use QtSingleApplication for single app instance.
The parameter marshalling is very primitive and needs fixing