Add "Cookies domain" global setting.
Restrict adding new cookies using `updateCookie` helper.
Code cleanup.