Move code to the urlconnection module.

We don't need this code for the core OkHttp API.