Add Preprocessor Loader that allows pre-filtering template code.

This allows, for instance, producing more readable output. See issue #1005.
the callable typehint must be removed as it requires PHP 5.4+