Cleanup the CookieVariable class.
Updated the iterators in the cookie classes.
Various small refacts.