1.7 compatibility

* Django no longer includes simplejson, use the upstream
* mimetype has been replaced, use content_type instead