Handle node down/node up correctly.

manual application of https://github.com/basho/riak_repl/pull/248.patch
Merge pull request #322 from basho/dip-tcpmon-nodedown

Handle node up/down in tcp_mon