Change index layout.
Fix Travis configuration.
Add functional test cases to login.