Dialogs refactor: simplifying the templating impl

This will allow a finer-grained control of what affects the dialog and
what affects the contents of the dialog.

Maintaining that this.mustache should be the portion you care about
rendering, not the surrounding DOM.