cleaned up the way we check for mime type in uploaded files. now using the standard lib's mimetypes. easier and more reliable than parsing the filename ourselves.
fixes #415
Merge branch 'dev.pdf-fix' into develop