use per-thread CookieManagers

gwt-syncproxy calls CookieHandler.setDefault to switch
between per-service-proxy cookie managers, which is completely
useless if you have multiple threads making RPC calls.
So, use a single global CookieHandler which delegates to
per-thread CookieManagers, to ensure that each client thread
has a separate cookie store that is used consistently.