Codemirror 3

switched over all the code to make use of codemirror3 rather than codemirror2