More general client command lexer, some clint input test code