Fix for deprecated preg_replace
Replace use of deprecated /e preg_replace modifier

Closes http://tracker.modx.com/issues/10056
Closes #17, #20, and #21

Merge remote-tracking branch 'origin/pr/21' into develop

* origin/pr/21:
  Fix for deprecated preg_replace
Replace reflection of PHP_SELF with SCRIPT_NAME in xPDO::log()

See http://bugs.modx.com/issues/10290 for details referenced from http://www.securityfocus.com/archive/1/529372
Merge remote-tracking branch 'xpdo/develop' into develop

* xpdo/develop:
  Replace reflection of PHP_SELF with SCRIPT_NAME in xPDO::log()
  Fix for deprecated preg_replace