Add CLI interface class

This is where we should do all output formatting & pretty printing
specific for the CLI i.e. move over TestDatabase's main() method to
it.