Added dev4.
Fixed bugs found by riak_test cases.
Upgraded to riak_core 1.3.1