Move all dom-ish dependencies out of views. Requires moving the creation of the todos/View instances out, too.