Removed vanilla-specific cruft.
Removed unit test for operator not.
Split hairy front end from core template engine.