Move custom CSS and JS to head matter

The head matter content will be available as handlebars variables at the
master template. This makes the system generic and easy to extend.

Closes #22.