Dump command can dump history
Command: remove trailing spaces
Lexer no longer tries to track cursor position on client-side
History: expose head of history
Command: seek before/exact command ignore invalid items
Fix wrong location and handling of EOF
Track_definition: cleanup dead code