Replace deprecated mimetype with content_type

The 'mimetype' argument for HttpResponse and related APIs was deprecated
in Django 1.5 and replaced with content_type. Update these arguments to
remove deprecation warnings.