Completelyl refactoring! All mongo-rest tests pass now, but the collection, entity and interceptors don't yet.