Curl switch to tls

based on https://github.com/Payum/Payum/issues/233 with some additions.