Making it a gem

I added tests, changed some things to be more rubyist and I even published to rubygem.