A shim for node's TLS/SSL socket api for chrome.socket