Move S3 logic to dedicated class
make download.mimeToTypeDict work
fix typo in function name