move Ryan's proxy code from client.lua to Connection class

also remove connect_old() method in client.lua

No tests yet :(
Could we enforce one way to set them? How able simply `self._tls_options.ca` and `self._tls_options.key`?