Programming Drupal 7 Entities