Port of the Drupal CMIS library