moved testing code from server to parent so it can be used consistently from all sub packages, added a common mongo model and wrote tests to ensure that MongoGateway implements DbGateway and CommonMongoModel implements all of Model except validate
changed the model based routes to use a new ModelRoute struct that has a generator function that returns an appropriate handler for a model instance