fixed ratings, optimized ratings

changed to support fragments, ratings: added date, updated php api