Added format validation extension

Allows to specify format validation (as a function) in the settings of
the plugin. In this instance I've used it to make sure a date (masked
with 99/99/9999) validates correctly to DD/MM/YYYY.  Different
validation functions can be added per-mask.