Refactored some points of the API

- Refactored spec controllers
- Move validations to CoreBundle
- Improves into repositories