Move command line interface source files to cli/ subdir

In preparation for addition of other frontends, move
the CLI interface to its own dir