Split terminal.go, make quitFlag not a global anymore
Continue migration to command based execution.

Still pretty much broken.