Register rewrite rules during plugin activation

In order for the rewrite rules to work after activation, the rewrite rules have to be registered in the activation hook. Currently, the activation hook does nothing more than flush the current rules. Since our custom rules haven't been registered yet, they are not included in the flush.