Adding a template generator.

Rather than hand-make the template for each new chapter wrote a
template generator that takes in a copy + paste of the exercises from
the books and outputs the template.