Add request.files and fix UploadedFile argument handler

Had trouble getting UploadedFile to work. I added a unit test and better file handling.