Added wider template abilities.

Allow arbitrary data to be passed through either JSON comment in the MD
file or `templateData` configuration option in Grunt file - for use in
the template.