Upgrade codemirror and enable line wrapping

Fixes #678.