   model.allTodos.onValue storage.save
   {model, view, actions}
 
+
 app = createApplication()
 $('body').append(app.view.fragment)

      _.defaults {completed}, t

  {creates, destroys, edits, toggles, megatoggles, clears} = actions
  # thanks to Juha Paananen for the stream of functions pattern!
  mutations = creates.map(mutators.create)
    .merge(destroys.map(mutators.delete))
    .merge(toggles.merge(edits).map(mutators.update))

  load: -> JSON.parse(localStorage.getItem(this._id) or '[]')
  save: (x) -> localStorage.setItem this._id, JSON.stringify(x)


createActions = ->
  to_hash ([name, new Bacon.Bus()] for name in \
    ['creates', 'destroys', 'edits', 'toggles', 'megatoggles', 'clears'])


createModel = (initialTodos, actions) ->
  mutators =
