Convert RatingResource and RatingFlagResource to DRF (bug 910570, bug 910571)