rewriting: support setting cookie_scope at collection level
js rewriting: add custom url rewrite option to per-url rewrite rules