Recompute rating for all users that participated
Recompute rating for all users that participated

This correctly recomputes the rating for users that were later excluded
from ratings, which fixes #1696.

This also simplifies the Profile.rating update significantly, avoiding
crazy stuff like temporary tables, instead simplify using subqueries.

DMOJ/site,DMOJ/site,DMOJ/site,DMOJ/site