Apply automatic filtering when necessary.
Respect the autoescape option
Initial (dirty) patch to support embedding external template blocks.