move app delegate utils directly into main file
port some more code from desktop main
optional tcp/ip connection listener for desktop mode
ignore run diagnostics argument
initial work on options class