Move event handling into view component

Event handling is simpler and more appropriate in the view component.
Do all the work there then hand off to the controller context on demand.
Also clean up whitespace left over from c9.io and move todos collection into
models where it belongs (Smalltalk models could be collections or single
objects).