Add API endpoint for flagging a rating as spam (bug 848505)