Making the default template rendering editable from system designers' pov

- [ ] Refactor out logic that is currently doing a lot of inline template rendering into explict prototype template files.
- [ ] Use these prototypes for generating the default screens.