An rewrite of the Flag Classes module for Drupal 7