Add infrastructure for custom cookie jar