Pattern needs to work with redirect

At the moment the matching pattern is configurable (`config.pattern` but it's not being used when a redirect is issued). This needs to change either by:

1. Providing two config parameters (one for matching, one for replace)
1. Providing one config parameter that will generate both re/replace string

I'm leaning towards option 2 at the moment.