Don't count users with two memberships double

If a user is a member in two rateable groups he/she is only counted
once and the best rating is used.
Ignore ratings for delted groups

Before the fix, the all_ratings_for_rateable_groups_... method would
return ratings for groups that have been deleted.