Add theme_fivestar(), fivestar_compute_base() and fivestar_compute_value(). Change fivestar_field_formatter_view() to display the fivestar widget. Change _fivestar_widget_click() to make a service call to rate an entity when the widget is exposed.