Detect dirty sides on every content modification.

Marker change events don't fire unless you add or remove lines.
We don't need to listen for marker changes.
Only trim classes from actual .line elements.
Simplify detectDirty logic a little.
Remark classes immediately on dirty detection.
Merge pull request #67 from smashwilson/change-detection-broken

Correct "dirty" side detection