Cleaned styles and scripts, refactored app

- Used bower for client side libraries.
- Refactored app to pass tests
- Passport encapsulated in a function to have more control