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.
Moved compound results module to lib

Signed off by: Alessandro Palmeira <alessandro.palmeira@gmail.com>
Included necessary requires for compound_result modules.