Validator rewrite to decouple from container object.
Rules are objects now. Validator works with a value which is checked
against one or more rules.

Signed-off-by: Michael 'Tekkla' Zorn <tekkla@tekkla.de>