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

also remove connect_old() method in client.lua

No tests yet :(
if the tls_options have it in there then it is used by default, if you pass in options.{ca,key} then those will be overwritten