Hold application in background mode

Do not create background window.
Fixes Bug 719666.
Do not create window on close in background mode
Never open new window with --background

Fixes Bug 720491.
Fix command line processing on primary instance
Do not close main window on escape
Make setting enable-close-note-on-escape work

Fixes Bug 720748.