Basic connection handling.

Connections to servers are created automatically if they dont exist. Currently only one connection per server.