fixes #1 don't delete objects in angular model by index

We now search in the model with helper functions
- removeFromModel(list, object)
- updateModel(list, object)
When we used the index, it was the "sorted" index, but the model was not
also sorted, so sometimes we ended removing the wrong object