Switching CLI to use thor.

I really liked the idea of docopt, but the options hash is currently
a mess. Using the examples in the readme leaves you with has keys
like "<name>" => [ [0] "foobar" ]. Not exactly the nicest to work
with.