Add an optional 'endpoint' parameter to generate_url() and thumbor_url()

Another approach may be a `thumbor_server` parameter defaulting to `settings.THUMBOR_SERVER`.