Improved Grunt building and fixed template bugs

This commit also upgrades Hogan to 3.0.2 to match the compiler's
version.