Add *tag-open-pattern*/*tag-close-pattern*.

These are analogous to *filter-open-pattern*/*filter-close-pattern*.
Clean up/reduce duplication in template-parser.
Use consistent indentation in template-parser.