Add security to Riak

Implement client side changes for PB security.

See also basho/riak#355