write_http: expose more TLS options

* adds support for client certificate authentication
* allows setting CAPath
* allows forcing a specific SSL/TLS version
Merge pull request #666 from KiNgMaR/write_http-ssloptions

write_http: expose more TLS options