Migrate riak_kv's mapred_test suite

The mapred_test eunit suite had a fragile setup stage that frequently caused the automated builders to fail. It should be more stable here.

The suite has also been broken into several independent tests, to make it possible to run each major piece individually.

Some of these tests would benefit from code in #143. They have been marked with TODOs to be fixed once that PR merges.