Refactored the mapper.
Implemented the simple routing setup (#22).
Updated code dealing with many-to-many association (#8).