Module exports

Add a nonstandard node-ism to require to support newer codemirror, and upgrade codemirror