implement logout function

add 	logout function implementation
modify 	rename ChatClientListener.onReceiveMessage to onReceiveChatMessage