Move windowing code out of ui.js and into windowing.js.  Move templating into templating.js, along with some substitution.  Apply that substitution to interface.html.  Fix up functional testing some.  Pass ui module along with ui-ready event.