Dbs3 pycurl optimization

Hi Yuyi,

this patch includes all the optimizations for the pycurl rest client used in DBSMigrate. Shared DNS, Cookie and SSL session caches, and thread-safety. In addition, I fixed https://github.com/dmwm/DBS/issues/304.

Could you review and merge, please?

Thanks,
Manuel