Code for the AWS web workers that create file previews and other things.