Moved most of the mongo entities into model-api module so they can reused by export-import. Remove dependency of export-import on mongo module