Add ipv6 support for api listen
Remove the brackets when using v6 pool address
Free addrinfo garbage
Merge branch 'temp' into ipv6

Conflicts:
	api.c

Conflicts:
	api.c