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
Filter out meaningless text nodes from unit tests

Some unit tests compare an XML snippet before and after the execution of a
set of operations. For this comparison to pass all the text nodes had to
be exactly the same even if they were not contained in an ODF paragraph.

This imposed a limitation on the tests as they could not have any
whitespace between node structures that were compared in the test files.
Having whitespace is useful to format the test XML data so that it is more
human readable/editable.

This commit filters out any text nodes not contained by an ODF paragraph
so that any test comparisons won't be affected by these text nodes.