Use riak_core_cluster_conn API to get connection status

Use riak_core_cluster_conn API to get connection status instead of raw message
passing.

Please do not merge this until
[this](https://github.com/basho/riak_repl/pull/498) riak_repl PR has
been merged.