Add a filter to allow modification of rewrite rules source

Using a filter on the source for the rewrite rule allows us to specify something more descriptive then 'other' in certain cases, leading to better troubleshooting.
Merge pull request #10 from jeremyfelt/master

Add a filter for rewrite rule source