Merge pull request #437 from satsuper/list-styles

Refactoring and bug fixes in list styles
Fix replaceByFileContents.js to not activate replacement patterns in the replacement string
Use replaceByFileContents.js in firefoxextension build instead of custom solution
Merge pull request #498 from kossebau/fixWebODFJsInjection

Fix webodf.js injection into html pages
Don't search for a hyperlink container beyond an inline root

Fixes issue #492.
Merge pull request #494 from peitschie/tooltip-fixup

Don't search for a hyperlink container beyond an inline root
Support multi level list numbering

Implemented a changed list counter setup where each list level has its own
counter. This is to support behaviour defined where you can display only a
subset of the list numbers.

This is defined here:
http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__1418890_253892949
Continue numbering of previous list

This implements the text:continue-numbering attribute which specifies
whether the previous list numbering should be continued if it has the same
style as the current list.

http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__1418834_253892949
Continue numbering of list by identifier

This implements the text:continue-list attribute which specifies the list
whose numbering should be continued with a unique identifier.

http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__1418832_253892949
Moved generation of list level CSS selector

The code for generating the appropriate CSS selector based on the level
the list style applied was being duplicated so I have pulled it out into a
separate function.
Remove dead code from OdfCanvas and OdfUtils

The removed code was intended to implement continue list functionality.
However this code no longer worked due to a regression introduced in commit 3ae9e0c.

As I have refactored this area and implemented the continue list
functionality in the new list styles class this old code is no longer
required.

The removed code in OdfCanvas also made use of the
getFirstNonWhitespaceChild function in OdfUtils and the removed code was
the last remaining usage of it. As it is preferable to make use of DOM API
calls which give us the desired behaviour such as
element.firstElementChild I have removed this function.