Add flask integration tests for upload

currently I am having a problem extracting stuff from the session during
tests so we are following redirects to test messages. This is not ideal.
Will try and fix
Working code for the tests we have of upload

We should be able to get these test working without the templates which
will come in the next commit
Template changes to render all the messages upload is now sending out