Console automation

Allow the console UI to be run in an automated mode where all commands
are given as command line arguments. Split the commands into their own
classes to make it easier to find them.