utf-8 cleanup
Pickle problems

Because pickle doesn't necessarily output text that can be encoded in
utf-8, the server would crash whenever a query was sent. Workaround
encodes the pickle dump in base64 before sending it to json to be
screwed up.
Moved over to JSON

django.utils.simplejson is deprecated
Fixes use of 'mimetype'

Django considers mimetype deprecated and prefers content_type
Merge branch 'deprecated'
Merge branch 'pickle'