refactoring of todomvc demo, add persistance via localStorage