Configurable validators

Fixes https://github.com/numenta/nupic/issues/458