Doc book authors can now supply a set of template variables and use them in ERB
Variables can be referenced from the vars helper using method syntax
Refactored our helpers, and also deleted some dead code therein