Ensure generated JST templates are added to the built distribution

Currently the grunt build file will not add the generated JST template file to the distribution. The attached patch adds a path definition to the requirejs to replace the original templates.js with the generated one. It also ensures that the generated template.js is added to the build if AMD is not being used.

Given that the templates are now being generated completely, I don't believe that the original  app/templates/templates.js should be created. I will work to unwire this.