Converted plugin into Ruby gem

I've change the code to a gem and tested it with Rails 3. I added testing with Rails 2 on the TO DO list.

You should fill up the email and license fields on the .gemspec file before uploading to Rubygems. I am happy to maintain the gem in case you don't want to.