Changed repositories returning class of factory

* Removed all Repository class parameters because is something very related to the entity definition
* Removed long names and removed aliases
* Some style fixes
* Changed all the tests