CRM-15297 add Drupal8 functions from GSOC to Drupal8 class
where the d8 function is unchanged from d7 put in the DrupalBase class instead