sync with yii2-usr: move UsrController.displayFlashes to a widget, move some checks in DefaultController to a beforeAction method