allow meta-templates, whitespace in variables

Added in the functionality to allow an output of {% by changing {{{ to
{, and specially watching for the %}}} sequence in the
right_curly_brace_rule. Added allowance for whitespace inside of
variable references between the brackets and the variable expression.
(a side effect of meta-templates, otherwise could not write {{{{
{{var}} }}}}