Better cookie support with the AnyEvent::HTTP backend

AnyEvent::HTTP will munge HTTP headers with the same name into a
single one, thus destroying Set-Cookie headers if more than one
cookie is set. This patch provides a primitive fix and a couple of
tests.