Reorganize code to enable http roundtripper interception.

Remove server's httpTransport variable. All references to a transport
are now through the httpClient variable. An init() function can modify
the client transport to add other authentication schemes, log requests
and so on.