More on advanced app template:

- Unified way to use Alert
- Added link to restore password to login form
- Refactored restore password