Unit test and sendcmd/query refactoring for CC1.
Misc fixes to docs, CC1. Promoted s_u_s from HS9000.