Added $checkSession parameter to User::getIsGuest() and getId().
Fixes #497: Removed `\yii\log\Target::logUser` and added `\yii\log\Target::prefix` to support customizing message prefix