tests: Make the server version check more forgiving

Instead of requiring the server to have the exact version number of
2.0.0, allow anything that starts with 2.0. This makes the test suite
work with Riak 2.0.1.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
Merge pull request #2 from algernon/h/tests/version-check-too-strict

tests: Make the server version check more forgiving
Add support for getting/setting bucket types

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
Implement basic DT get / set

This implements the very basics of data-type get & set. The protocol
buffer wrappers for the various data types are not included in this
commit.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
Add convenience wrappers for the Counter data-type

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
Add wrappers for the Set data-type

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
Implement getters for Counter and Set data-types

The getters wrap the supplied callback, and if the get succeeds, they
call the supplied function with the value already extracted.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
tests: Add tests for the Counter & Set data-types

To run the tests, one will need to run dev/riak-setup.sh as root *once*,
to create and activate the necessary bucket types.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>