Subcommand support

Also adds support for command line flags for config, user, pass, host,
and port