update aws-related scripts with smarter chunking, ability to set S3 endpoint, ability to use environment vars for certain things (close #2)