Replace make-templates.sh with Makefile

Beginnings of a Makefile which provides the following:

```
make app/js/templates.js
make all
make clean
```

Note that I preserved the principle of generating a temporary file with
handlebars then moving it into place (which I presume was for
atomicity). However the tempfile is now generated by `mktemp` which is
safer than using the PID to derive a name.

Discuss: I removed the check for whether templates.js is up to date in
favour of just doing `make app/js/templates.js` and letting make figure
it out.

Starts #227
The problem is, we'd also like run-tests.sh to work during development, when someone is frequently modifying the input templates and re-generating templates.js, without necessarily staging templates.js each time.