get http port from rt:connection_info for replication2

use a generic wrapper to work with multiple versions of Riak