Added server functionality to upload images and pdfs to Amazon S3

Need to add secret.js in order for it to work