added ClientManager singleton object to provide a mechanism for platforms to store objects beyond a single session
updated listener to automatically call cm.remove (clientmanager) to cleanup clients when a connection resets
initialize clientmanager on platform session object