Make json a gem dependency

As we have a couple of methods that use this, and its part of the Ruby
standard library, it seems reasonable to load it by default, even though
not all users actually use it.

This fixes #50.