Resolve the DNS name to an ip address in the ZMQ util module

When given a non-ip address hostname (e.g. localhost) the resolver will
now return the detected ip address for that DNS name, if any.

Fixes #46.
Merge pull request #46 from localshred/bj/46-hostnames

host should handle names and ip addresses