Fix for #2087
Defined STDOUT in entry scripts in case console application is running via CGI
Merge pull request #2090 from lucianobaraglia/2087-pgsql-schema-quoted-indexes

Fix for #2087
Fixes #2091: `QueryBuilder::buildInCondition()` fails to handle array not starting with index 0
PHPDocs: "app\models" changed to "common\models"

Just a minor PHPDocs change. In the advanced application there is no such thing as "app\models".
Merge pull request #2092 from kumorig/patch-2

PHPDocs: "app\models" changed to "common\models"
Added doc.