Checks a given API endpoint to make sure it's not blocked by a network, and returns either a secure, or unsecure API url.
A browserify transform to replace http of script sources to https.