respect proxy settings across redirects

Change-Id: I3c5be049781665fcdf3b6e16c0b7cdec4445d877
WIP: DNS support.
ByteBufferList: fix order on elements

Change-Id: I2ecd79ed42198b884d5eaca1f42bc98bb05294e0