Upgrade codemirror and enable line wrapping

Fixes #678.
Merge pull request #755 from spicyj/cm-scroll

Upgrade codemirror and enable line wrapping