Added onOpen and onClose to Logic and removed from GenericClient and GenericServer. These method are now called properly. Started working on ChatManager