Implemented conditional validators (see #2406)
Fixes #2724: consistent use of absolute and relative routes.
Fixes #2823.
fixed test break.
Merge pull request #2808 from drenty/conditional-validator

Implemented conditional validators (see #2406)
separate id and name of attribute for client side validation
Added Validator::whenClient.