Fixing issue where cookie jar/store is shared between threads causing identity problems

Per
http://hc.apache.org/httpcomponents-client-ga/tutorial/html/statemgmt.html#d5e849
set up local context with Basic Cookie store such that the cookie store
will be isolated to the current thread.