CRM-13737 drupal integration - remove directory handling from non civi urls

& add code comments to attempt to explain what is going on :-)