Wiring up a whole bunch of stuff to the new domain model and to mongodb.