Extracted responses from RepositoryController into a private function

This should avoid duplications pointed out on: https://codeclimate.com/github/mezuro/kalibro_processor/RepositoriesController
Merge pull request #58 from mezuro/refactor_repositories_controller

Extracted responses from RepositoryController into a private function