Replaced use of T4 templates with PS-based templates.

TextTransform.exe is not available with Express versions of Visual Studio.