Uses secure RubyGems URL
Removes some confusion from ContenTypeDetector methods
Fixes a test that caused an error in Ruby 2.0.0
https in the Gemfile.lock