Command line tool to invoke the rest api.

This incorporates pull request #102, which is under review separately. Implementing the rest of the cli functions is part of the current sprint, so we should get this merged soon.