decouple the http transport from the client. prep for spdy.