base: add pre-template-render signal

* Adds signal that can be sent from views prior to
  a template being rendered. This allows simple customizations
  of the template context.