Add support to choose different s3 region endpoint

add a --endpoint input parameter to select s3 region endpoint, e.g. "s3-ap-southeast-1.amazonaws.com"

Reference:
http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region