Don't allow ratings less than 1 or more than maximum

Previously it was possible to get `rating` greater than `numberOfStars`
by using the pan gesture recognizer. This commit boxes `rating` between
1 and `numberOfStars`