Added rating to the model.
Fixed bug that did not allow saving the detectors at the same time we where removing some things.
Implemented the sharing of the ratings.