Allow PDF uploads in image upload

- expand code to allow pdf
- add lists of mime types to python and JS
- adjust js tests to be stricter and test pdf as well
Merge pull request #4 from Stanford-Online/giulio/allow-pdf-upload

Allow PDF uploads in image upload