Arrange JSON instances more like the rest of our code.

Employs the technique of (package) objects extending `*Instances` traits, which generally follows the scalaz model generally followed elsewhere in http4s.