Clean up

- Move download button markup into a template
- Move filename parsing into a handlebars helper