Functioning wiki-style templates

Refactored the main model a bit.  The router no longer interacts with
the main Ractive element, it just fires off events that the main
controller thingy in noddity.js pays attention to.

Most templatey things (besides a few stand-alone functions in the
template toolbox) are now handled by the Template class-thinger in
template.js.