Adds support for tls.connect and the secureConnect event

This PR add support for the `tls.connect` method so that https can be used with [Nate's recent changes](https://github.com/tessel/runtime/pull/403). It is not meant to fill out the `tls` core library.