Taking a sequence of ops also enables to give the guarantee that all
contained operations will be executed directly after each other,
in the given order. So creator of the ops can calculate the spec of each op
by relying on the known effect of the other ops.
* Editor can have three states: without a document/session, with a document/session, destroyed
* Editor is created without any document/session initially
* document/session has to be closed before loading another one
* EditorSession/Session are bound to a document/session, recreated for another one
* all other objects are reused with another document/session
* destroy() cleans up the Editor from the webpage it is embedded (at least good enough for now)
* startEditing/endEditing have to be done by the user of Editor
Idea here is to create abstraction as much as possible for all ODF-related
objects, e.g. the cursor objects now belong to and know the ODF document model
they run around in.
Some avatar tests still need fixing/adaption, but from manually testing it
looks good, so commiting now to prevent too much differences.
Also change session operations to return a boolean. This will later be used for making an implementation of a session that signals if certain operations are allowed or not. This is useful in operational transforms, unit tests and enabling or disabling parts of the ui.