Fixed adding and removing of rewrite-rules on plugin activation and deactivation.