Refactored uploading code, migrating from routes/index.js to its own awsUploader.js