Added a client manager for tidying up the socket.io interface