Add bucket type support for Riak 2.0+ servers.

Adds support for bucket types, which are new in Riak 2.0. Keeps API
compatibility with previous version for symbols not starting with an
underscore.
Sanity checks that need to become real tests.