Enable option to cache DNS lookup once

Caching the dns lookup leads to significant throughput gains for
non-ip hostnames.  Also, provided a new (backwards compatible) api to allow for easier instantiation of StatsD clients.