DRY up and code clean up
add log line in Riak CS.
add riak_test on #842