Add basic ipv6 support in graphite handler

The graphite handler is currently hard-coded to connect with ipv4 only. This is a simple fix that will use ipv6 if getaddrinfo returns an ipv6 address as its first match.
There should probably be some kind of fallback mechanism in case the first attempt fails, so if ipv6 times out, it will try ipv4.