Add a filter for rewrite rule 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.

Addresses Issue #9