Fix "DeprecationWarning: django.conf.urls.defaults is deprecated" warning
Fixed simplejson deprecation warnings by switching to json.
Fixed mimetype keyword deprecation error.