Structure View for templates

Populate the structure view pane with a representation of the template:

![structure_view](https://f.cloud.github.com/assets/711001/347687/bfae5c72-9eea-11e2-9ee7-a97a1f7028bc.png)