allowing dynamic repositories

Getting the repository class from the called class in order to create new bundles and controllers which inherits from ControllerCore
Merge pull request #1 from joseiogr/patch-1

allowing dynamic repositories