Add Preprocessor Loader that allows pre-filtering template code.

This allows, for instance, producing more readable output. See issue #1005.
this fallback implementation for older loaders is wrong. Look at the chain loader for a working implementation