add ability to specify tls options

add ability to specify tls options (node.js tls) when connecting with https