Improve efficiency of resource lookup
Various template-related changes.

- right click in Definition tree to display external reference archetype in new tab
- right click in explorer tool to create a new template on the spot
- use wait cursor more extensively to allow large templates & archetypes time to build
- fix bug where prohibited external refs from parent were overlaid in template