Rename require_login to require_authentication
Require card token to create apps
Refactor views
Display flash in views
Fix JavaScript reference error