Initial commit of connection, server and client code.