Added simple mimetype mapping
minor change
added validity check for mimetypes
Merge pull request #8 from ajstanley/7.x

7.x