got the basic code to upload to s3 working. Now need to refactor the existing upload and the browsing stuff
upload to s3 working correctly