another massive refactoring

mongo repository completely refactored, dependency injection
implemented, preparation of roles and authorization implemented