Merge pull request #645 from lucianobaraglia/master

Typo fix [skip ci]
fixed basic app code style
added some phpdoc to advanced app
removed unused line from smarty plugin
fixed code style
added missing return tags to CaptchaAction
added Panel phpdoc
short phpdoc descriptions for Panel subclasses
added missing GettextMessageSource phpdoc
class import cleanup
Refactored Sort.
test break fix.
More on advanced app template:

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