client state

Add realization client state machine.