Added more commands into statem.
Refactoring. Removed MessIdxKeyMaker. Introduced #r_query{}.