Add CodeMirrorDoc and the code folding addon.

Add wrappers around CodeMirrorDoc, which supports manipulating the
contents in CMs.

Add foldcode.js addon. This lays the foundation for handling skips.

Change-Id: Ib5df6487b0fcde9bb3395ec64cf84fcf7ff125c1
4 files changed