Initial implementation of the command-line interface.
Merge pull request #79 from square/jw/v2

Initial implementation of the command-line interface.