add `validator` rule for customized function
Docs update for `validator` rule
Improve custom validation docs

Move the _new_types tag back into its appropriate position and reword a few
things here and there.
Luo Peng
New function-based custom validation mode.
Merge branch 'RussellLuo-add-validator-rule'
Bump version to 0.8