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
tests for upload when no file
Fix for upload when no file
pop session stuff, don't just read it - prevent multiple display
improve tests - address issue of having to follow redirects

This means the tests are more unit tests - they no longer have
dependencies on the templates or other upload routes
test session is cleared on sign out