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