setup CodeMirror folding, added behaviours to show gutter folding