expose the number of threads used for s3 upload (PLAT-563)

The number of threads used for uploads to S3 is currently hard-coded to 8. This PR makes it possible to specify the number of threads
Changes made and committed