Refactor code for better redability

* Changes spaces into tabs
* Properly indents functions following http://laravel.com/docs/4.2/contributions#coding-style and http://www.phptherightway.com/#code_style_guide

Signed-off-by: Jesus Fernandez <jesus.fndz@gmail.com>
Refactor projects search for better redability

* Moves queries to the project repository
* Reuses same query (DRY) for the index vs subsequent pages

Signed-off-by: Jesus Fernandez <jesus.fndz@gmail.com>
Merge pull request #132 from jesusOmar/dev

Code refactors