remove unneeded dependencies from EditController
getAllTodos function in factory
extract createTodo into factory