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