First quantum of workiness for MR.

You can run a basic Map task that transforms data.
Refactors Materialize in to its own library.

Also adds tests for MR pipeline.