The templates.js boilerplate is now managed by the build.

* A script tag for .tmp/modules/templates.js is injected into .tmp/index.html.

* The </body> tag is replaced with the boilerplate, or the boilerplate is added to the end of the file if the closing body tag does not exist.

Closes #14