Made the chat IPv6 compatible.

The client uses getaddrinfo() now, which means you can now type in hostnames or even IPv6 addresses. The server is also updated to receive on IPv6.