Fix karma.conf.js updating on Windows

Karma.conf.js may contain \r's when checked out on Windows. Cope with
these when updating the karma configuration file content.
Merge pull request #641 from peitschie/win-karma

Fix karma.conf.js updating on Windows
Add SessionBackend abstraction

hides away any assumptions about server class structures from the Editor class
Remove option to configure the member id in local edit mode
Merge pull request #624 from kossebau/sessionbackend

Reduce assumptions about backend in the editor
Ensure a caret doesn't receive any new events after destroy is invoked

Deleting the caret before calling ensures there is no way for any external
sources to get access to the soon-to-be destroyed caret.

As part of tracking this down, scheduled tasks will now throw an error
if an attempt is made to trigger the task (either delayed or immediate)
after the particular instance has been destroyed.

This then showed that functions bound to browser events swallow errors
quietly, so additional logging was added to the EventManager delegation
code to ensure errors generated when processing an event are logged.
Merge pull request #620 from peitschie/caret-destroy-fixup

Ensure a caret doesn't receive any new events after destroy is invoked
Wait with sending statereadychange until all items from the load queue have been handled.
Merge pull request #642 from vandenoever/canvasdone

Wait with sending statereadychange until all items from the load queue h...
Pass on expected sessionConstraints parameter to SessionView in viewer
plugin.
Merge pull request #643 from adityab/viewer-constraintfix

Fix viewer crash when initializing SessionView
Split CollapsingRules out of OpRemoveText

This functionality will be shared with the soon-to-exist merge paragraph
operation.
Implement OpMergeParagraph

In order to improve the OT-ability of text and paragraph removal
with other operations, the merge behaviour has been extracted.

The logic for building up the necessary remove operations has
been encapsulated in TextController for now as all uses pass
through this point still.
Cleanup leading/trailing insignificant whitespace on paragraph merge

Failing to clean up these empty whitespace blocks will cause them to
unexpectedly become significant whitespace after a merge is performed.
Convert long regex into a switch statement for clarity
Implement OT support for MergeParagraph