add onClientConnect to clientstatehandler;remove id parsing in onClientConnecting;
add markAs* instead of direct calling to handler in stateBuilder
fix connectClient while connection not open
update version
add state to client