Use the new api for the tcp module

I saw the email go past, but can't find it offhand for changes to how TcpStream::connect et al work. This seems awkward, (parse the hostname, turn it into an IpAddr struct, turn it back into a string because reasons) but I couldn't find another public API to do this.