allowing dynamic repositories

Getting the repository class from the called class in order to create new bundles and controllers which inherits from ControllerCore