IPv6 support

* Have servers listen on [::] instead of 127.0.0.1, to get both IPv6 and IPv4 clients
* Allow IPv6 addresses to be used for relay servers, with brackets, e.g. [::1]:80