Test coverage for command line tool.

* Convert CLI to a testable format
* Add some tests making sure basic CLI features work
* Add real integration test that configures the Vulcand daemon and making sure config actually worked