Refactored projects controller.

Signed off by: Daniel Bucher <daniel.bucher88@gmail.com>
Signed off by: Heitor Reis <marcheing@gmail.com>