Components refactor

- Improved components loading
- Refactor components to use some of flight.js ideas
- Use indented private/protected convention on .rb files
- solve N+1 queries on search
- update index tags rake task
- solve some minor bugs on components
- change jquery-modal to integrate better with our event handling system