Refactor createBucket implementation
Added ContentType if a filename is specified in the metadata