Fix some weirdness with simple templates

- Mixes in hooks defined with templates to routes defined within a
  template expansion. This allows simple templates to be created that define
  hooks only.
- Allows templates to be expanded without providing a name. The only
  caveat here is that it assumes the template is defining hooks and not
  actions, groups, namespaces, etc. For simple cases only.