Update to rebar 2.5.1 and fix rebar plugin

* Update to rebar 2.5.1
* Fix `riak_pb_msgcodegen` rebar plugin to use the newer rebar plugin API