Add support for custom domains from My Domains

If a user sets up a custom domain using Setup > Company Profile > My Domain, there URL will be "https://abc.my.salesforce.com". Without this patch, the proxy calls will fail due to an invalid instanceUrl value of "https://my.salesforce.com".