refactored in riak_kv bits from riak.schema with tests

Requires https://github.com/basho/cuttlefish/pull/43 to work, so make sure you point your deps/cuttlefish at jd-test-tools. Please review both PRs together. 

Here you'll find all the kv bits of the schema, and a unit test that validates them.