Move HTTP basic auth into URLRequest
Review Request #8911 — Created April 21, 2017 and submitted
The logic for adding HTTP basic auth headers to a request has been moved
URLRequestclass since it is generally useful. In addition,
HostingServiceClient._build_requestmethod has been removed since
it was used in one place; its definition has been moved inline.
Ran unit tests.