CRM-13737 drupal integration - Use basename fn to extract last dir in the url as suggested by @totten
CRM-13737 drupal integration - remove directory handling from non civi urls

& add code comments to attempt to explain what is going on :-)
CRM-13769 - backoffice membership form - prefill time

----------------------------------------
* CRM-13769: Receive date time field on membership page should prefill with current time
  http://issues.civicrm.org/jira/browse/CRM-13769