Finish strip-down of riak_api.

* Handle remaining riak_pb dependency (for errors) with an environment var.
* Document changes from riak_api.
* Add new error handling to tests.
* Add a Makefile.