Switch to MultiJson so we can run on any JSON.
Require YAML, because it's no longer defined by default.
Config was renamed to RbConfig starting with Ruby 1.9.
Change the Rdoc require so it works on all Ruby versions.