Moved prefix list to global var for fewer allocs
Added rewrite rules to domain config; implemented custom cookie jar