flatten the structure block contents in the outline;

Also extract text from `text {* *}` blocks
better heuristics for outline selection in the editor - fixes #47

Using proper_range for commands to determine selection range;
Trim whitespace from the end for block-level structure elements - better selection.
Merge branch 'outline-tuning'