Inject regex matches into environment

Injecting the matches allows handlers to use the matched strings in
their logic (e.g. to lookup data by an ID).
Merge pull request #25 from cwc/regex-matches

Inject regex matches into environment