Begin conversion of the model layer to a mapper.
Convert to array/map comprehensions where possible.
Add relationship prototype to mapper.
Move mapper into separate package.