Change to use the aws-sdk instead of the aws and aws/s3 gems

I change the upload part of the program to use the `aws-sdk`. I also add a environment variable for the bucket base hostname. Some exception catches may miss and the new environment variable may be unnecessary, but that could be improve in the future.