Feature heroku deployment

- refactors recovering of upload to google drive
- closes session after 'Send Files' is clicked
- fixes issue with archiving
- changes some things to run on heroku correctly