Fixed deployment script
xfixes #1888: updated Alert phpdoc

(cherry picked from commit 89ebbd24e16b4d551b67316718e8b93c1e2df91c)
Use postgis
Used dirname instead of realpath to avoid extra FS operations

(cherry picked from commit 4ada4e5b6a8cef23041f7e3c09d9ff9741083537)
Fixes #1937: Fixed wrong behavior or advanced app's `init --env` when called without parameter actually specified

(cherry picked from commit 7419cb92def3b9f673bd94d00ed07954ceaf2b4b)
init of advanced application now allows to specify answer for overwriting files  via init --overwrite=n

(cherry picked from commit eff141d0f30118be38f87648e256b14a7135348d)
Some Code style fixes

(cherry picked from commit aa6398784a243aa948870221bef11b44792ebe7c)
Defined STDOUT in entry scripts in case console application is running via CGI

(cherry picked from commit ca5b03670998338bd07493f66783b435906c6c1c)
PHPDocs: "app\models" changed to "common\models"

Just a minor PHPDocs change. In the advanced application there is no such thing as "app\models".(cherry picked from commit 567c91c13fe3d5503ed5545369af310115057c9f)
PHPDocs: "app\models" changed to "common\models"

(cherry picked from commit 73fa5137d70421e21d8971e048c2903be2e69218)

Conflicts:

	frontend/views/site/login.php
more validation for password reset token in advanced app

fixes #2099
(cherry picked from commit 699c91ce9fef6ea7099b0650815534844fd89f49)
Updated vendor libraries (breaks the code!)
Fix due to updated vendor libraries: Small Typo
Fix due to updated vendor libraries: Added { } for better debugging
Fix due to updated vendor libraries: Filenames must be checked as required
Fix due to updated vendor libraries: findIdentityByAccessToken now necessary
Fix due to updated vendor libraries: Rename AutoTimestamp to TimestampBehavior, DEFAULT_SCENARIO to SCENARIO_DEFAULT, Html::url to Url::to and fix the CreateQuery body (otherwise the whole relationsships no longer work!)