Allow caller to specify alternate root url

Currently root url is hard-coded to "https://www.googleapis.com".  This will allow caller to specify alternate root url for APIs on other domains.