Defined STDOUT in entry scripts in case console application is running via CGI
PHPDocs: "app\models" changed to "common\models"

Just a minor PHPDocs change. In the advanced application there is no such thing as "app\models".
PHPDocs: "app\models" changed to "common\models"
doc typos

fixes #2094
more validation for password reset token in advanced app

fixes #2099
Fix typos in constant
Merge pull request #3 from yiisoft/master

update from orig