Adds datatypes support.

See also basho/riak_kv#732. The API functions are equivalent to the ones provided by the PB client, but return values for errors will obviously be slightly different.