Add support for rewrite rules
Fixed regexp escaping and added tests
Added e2e tests for #rewrite and #clear_rewrites
Merge pull request #24 from sharethrough/master

Add support for rewrite rules