added IPv6 support, can be enabled in configuration using server.ipv6_enabled option. closes #348