Updated codemirror to fire 'lineStateChanged' event. Also updated codemirror to store line state anytime is computed instead of discarding it for (efficiency?) reasons.