Detect line endings when wrapping occurs between elements

Line ending detection was relying on wrapping occurring near or in a block
of collapsed whitespace. When wrapping occurs between two elements, both
previous and next rectangles may be defined, though the vertical overlap
will be absent.
Add tests demonstrating remaining line ending detection flaws

Line ending detection is still not stable when the wrap point doesn't
span a cursor position (as happens when the wrap occurs over
whitespace). Fixing this issue is not easy, so these tests demonstrate
the current bad behaviour so at least it is somewhat documented.
Add changelog entry
Merge pull request #774 from peitschie/line-scan-fix

Detect line endings when wrapping occurs between elements
Update JSLint
Small fix so JSLint does not abort on the construct like [0][0].

JSLint cannot parse this line:
  l = 3 * l - [0, 0, 2, 1][padlen];
so, i've move [0, 0, 2, 1] to variable a and changed the line to
  l = 3 * l - a[padlen];
Merge pull request #801 from vandenoever/jslint2

Update JSLint.
Introduce a proper CC type to hold style selection information
Delay signalling of enabled state changes until the op batch is complete

The internal state is reset immediately so any external calls to disabled
features will be correctly disabled. Delaying the signal however ensures
processing of groups of operations remains performant.
Enabled direct text styling only if current selection is a text range

Prevents the controller advertising things such as bold and underline
are valid operations for an inline image (they are not!).
Avoid enabling remove hyperlink button if hyperlinks feature is disabled
Add event subscription tracking object to simplify per-frame subscriptions

A common use-case for UI components is to only update the UI state just
before the next frame is rendered, irrespective of how many times a
signal is fired within a given batch of operations.

The event subscriptions object allows these to be easily created and
tracked, and also makes it easier to ensure all subscriptions are cleaned
up at the end.
Merge pull request #676 from peitschie/dfc-enabled-speedup

Improve large selection removal performance
Add UI buttons for list creation
Add list controller and responding to cursor events
Add support for session constraints to list controller
Add unstable flags for the list editing feature
Operations for adding and removing lists

These operations work on the level of top level lists only

Added tests for the new operations and changed the op test code to parse
any op parameter containing "length" or "position" in the name as an integer
Operational transforms for adding and removing lists

This handles transforms between Add/Remove list and other operations that
modify the number of steps in the document. There are some unresolved
conflicts with merging paragraphs and adding lists that return null as the
transform result which required merge and split operations on lists to be
resolved correctly.

Added tests for the new parts of the op transform matrix and changed the
op transform test code to parse any op parameter containing "length" or
"position" in the name as an integer.
Default styles for numbered and bulleted lists