Fix cookie handling to support .wikipedia.org cookies

This makes centralauth work - you can login on any wiki and then
just edit on any other wiki.

Change-Id: I52a2cd3d8990edfca05376797765e9e3fe058ea0