Reset _writePos to zero.

This is a bug, we forgot to reset writePos
unref interval in packet-queue

The previous version of statsd-client would not keep
    a process open. This new version does.

To keep back compat we need to ensure that the statsd-client
    does not keep the process open.
Merge pull request #13 from uber/0.0.4-dns-recovery.bug-fixes

[DNS recovery]: Bug fixes
handle errors on the socket
Merge pull request #9 from uber/0.0.4-dns-recovery.error-handling

[DNS recovery]: handle errors on the socket
Add trailing new line.

This gives us statsite compatibility, which means stats should
    stop dropping.
fix tests for new lines
100% coverage packet-queue
Gaurd against flushing an empty buffer.

If you write a chunk that is larger then the blockSize it will
    try to flush an empty chunk.

To gaurd against this we check whether the writePos is zero and
    if so we do not flush it.
configure the trailing new line