Added helper methods and better error stacking to validator.
Moved persistence filter to the plugin