CLI: TCPF: new tcpf_select(), improving the protocol

Make special function to select data from handles instead of
doing this from the loop to make code cleaner.

Instead of using D0,D1,D2,D3 sequence states, use DRQS, DRSC, DRSG
states. D2 state will be replaced with empty DRSC frame.