Refactored projects controller.

Signed off by: Daniel Bucher <daniel.bucher88@gmail.com>
Signed off by: Heitor Reis <marcheing@gmail.com>
Merge pull request #35 from mezuro/refactor_projects_controller

Refactored projects controller.