bucket type console functions

these live in kv because they rely on mochijson2 which is no longer in riak_core

This PR relies on https://github.com/basho/riak_core/pull/402 and https://github.com/basho/riak_kv/pull/673