Add start of riak_kv integration.

Add a post-commit hook and ensure riak_kv picks it up to begin testing.
Generalize the generate preflist function.
Move N value macro to the include file.
Resolve deadlock in declare.

Prevent a situation where a declare has to declare another variable on
the same replica and introduces a circular dependency in the virtual
node, which creates deadlock.
Resolve circular dependency in execute.

Short circuit the vnode master and execute locally preventing a deadlock
scenario in execute calls.
Minor syntax cleanup.
Add KV object hook.
Rename function.
Minor refactoring for clarity.
More refactoring for code clarity.
Rename bounded to bound.
Remove unused function.
Minor refactoring.
Add riak_test to Dialyzer.
Updated makefile.
Refactoring for clarity.