Creates a `Jsonable` mixin to allow objects to be serialized to JSON.

Models can just include this mixin (or have a base model that includes this mixin) and get JSON serialization for free.