A class for handling the Drupal rest server requests