Move code to the urlconnection module.

We don't need this code for the core OkHttp API.
Merge pull request #835 from square/jwilson_0517_promote_code_to_urlconnection

Move code to the urlconnection module.