Refactoring grape_ratings.  Intermediate commit to test in iPhone.