Combine CommandConnection with TcpConnection

Restores TLS functionality
Add option to specify certificate at start
Remove TcpConnection and TlsConnection