Added the ``getValidator`` method to modes.

Modes can now implement ``getValidator`` to return a validator to
perform some ad-hoc checks that can't be performed with a schema-based
validator.
Fixed a refresh bug that caused errors to be duplicated.
Version bump.
Merge branch 'release/0.19.0'
Merge tag 'v0.19.0' into develop

0.19.0