Working headless support
command-line options to start in headless mode
Merge pull request #917 from mkienenb/PR-headless-support

Pr headless support