Fix a couple issues on ruby 1.8

mime-types 2 does not support ruby 1.8, so use mime-types < 2 on
ruby 1.8.  Adding json is not necessary in the gemfile, since it
is specified in the gemspec.