Cookie support, bug fixes.