Updating for riak-core 1.4.0

The api was changed between riak-core 1.0 and 1.4, so a few changes were necessary