Changed the way Session objects map sockets to connections.