Allow validation to be enabled/disabled.

Related discussion on ROCK-95. I changed the indenting on engine.rb which accounts for some superfluous changes.