Added support for custom Amazon S3 endpoints, and DreamObjects compatibility.

Added support for custom Amazon S3 endpoints. ShareX is now compatible with DreamObjects - the format of the policy timestamp sent up has been tweaked slightly to allow the DreamObjects API to work.