Handle node up/down in tcp_mon

manual application of https://github.com/basho/riak_repl/pull/248.patch + additional testing fixes