In RatingDataClass.php:
* coding style tweaks
* removed some unused globals
* swapped raw HTML to an Html::element() call in RatingData::getImage due to paranoia