Write APP.arg.parseAndRun

In the future, this function will take command line options
and just make them call actions that change global options.

12. Write APP.arg.parseAndRun
Fixing APP.main.loop to be more generic. This will allow for both
command line execution and a CLI/GUI interface.