Add Preprocessor Loader that allows pre-filtering template code.

This allows, for instance, producing more readable output. See issue #1005.
@stof Would it be OK to simply extend Chain loader?