Rewrite rules flush

Attempt to correct the rewrite rules not being properly flushed on
activation.
Merge pull request #2 from jalberts/master

Rewrite rules flush