update loggregator emitter lib

* correctly handle empty loggregator host
* correctly handle resolving hosts that have multiple ip addresses

Signed-off-by: Casey McTaggart <cmctaggart@pivotallabs.com>