Add ipv6 support for api listen

Add new argument --api-host to specify api listen address, default 0.0.0.0
Use ipv6 struct to store --api-allow groups.
Support ipv6 multicast.