Use DjangoJSONEncoder instead of a custom Encoder

It's better to use built-in django JSON encoder, it's there since django 1.3 so doesn't need backwards compatibility code.

Fixes #324