Implement simple templating utility

Add template.js file that implements the utility and a package.json file
to go along with it.