Connection management

Use template (Generics) for the user info part of the client connection.