Merge improved ConnectionManager into SocketClient

Merge ideas from https://github.com/clue/connection-manager into new SocketClient:

* Split SecureConnectionManager to use a decorator pattern
* Improve handling SSL/TLS errors
* Remove non-working timeout