add `validator` rule for customized function

`validator` rule may be very useful for user to customize validators by defining functions with the following prototype:

    def validate_fieldname(field, value, error):
        pass

for usage, see `test_validator_rule` in tests.py.