Add missing json dependency.
Fix 1.8.7 syntaxic incompatibilities.
Add Ruby 2.0 to .travis.yml.