Add JSON utils from PuppetDB.

These include the auto-added joda DateTime encoder, generate-pretty-*
functions, and spit-json. Bring all the tests along too.