Update to rebar 2.5.1 and fix rebar plugin

Fix riak_pb_msgcodegen rebar plugin to use the newer rebar plugin API