refactored to have a gemspec and an initial (if completely dumb) command line client