Create rating.class.php

Class for the new field type Rating.