Added support for using a custom json encoder class

I needed to be able to use DjangoJSONEncoder so that datetime's would be properly serialized. I updated the documentation, but didn't see an elegant way to test without adding a dependency.

Cheers,
Chris