Multi file upload

This is a pull request into sha256-custom branch.
I left a few debug outputs because we were planning to look into that PDFJS hanging problem.