This cleans up raw template code, reducing the text argument to its actual code (removing anything in noinclude blocks, and discarding the includeonly (or onlyinclude) tags).