Miscellaneous upgrades

Support change from http: to https://rubygems.org
Support Rack (and therefore Phusion Passenger)
Support Ruby 1.8.7
Add a .gitignore file
Small typo and indentation fixes