Move connect/ssl into transport