upgrade to codemirror 3.0 and fix some color picker regex issues