Make the Handlebars template generic.

This is an interim solution. It enforces a dependency on guice from Ratpack core. We'll have to introduce our own cutdown version of TypeLiteral for these kinds of issues.