Refactoring: moving models to core plugins

Moving mongooseManger functionality to a plugin and also moving all default models to core plugins too.