Add docs and example for #2214

Example show how to make an custom keybindings that complete the
longuest common subsequences.

A few fixes to xml-mode demo that didn't have some closing tags and made
Brackets  live preview (which uses codemirror -- sic) choke on the file.