Building a custom realtime chat module for Drupal 7 (part 2)