riak_core http setting moved to riak_api

use a generic wrapper to work with multiple versions of Riak
Merge pull request #393 from basho/dp_replication2_fix

get http port from rt:connection_info for replication2