allow connecting to carbon server using hostname resolved on every cycle...

..., fixes #186

Possible fix for #187 is included since I forgot to remove it. Should I remove it?