closes #390 and closes #417
fixes #418
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
improved upload failure message to include file types and max upload size.
fixes #382
stats table fix
freshened up hits stats. we should really pull this from the analytics api.