Refactored redirect() methods.
Merge branch 'master' of github.com:yiisoft/yii2
Reverted the change to User::loginUrl.