Make UtpStream::connect and UtpSocket::connect return IoResult.
Update tests to conform to new method signature.
Add stricter runtime checks in UtpSocket::connect.