Refactored creation of style tree

Moved the creation of the style tree out of Styles2CSS. This is the first
step in refactoring out and fixing some duplicate list handling code in
OdfCanvas.js.
Use Object.keys for iteration
Refactored application of list styles

Moved the code that parses ODF lists styles and creates rules for them
into a separate object. This is done as the second step in removing
duplicate/redundant code from OdfCanvas.js around some list style
handling.
Removed duplicated stylesheet error handling
Implement label-width-and-position mode for list layout

Remove the partial handling of list indentation and implement the default
option for list-level-position-and-space-mode.

Also added px as a conversion unit in CSSUnits.

http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#property-text_list-level-position-and-space-mode
Implement label-alignment mode for list layout

Add handling for the label-alignment list style element. This commit does
not implement the text:label-followed-by attribute when the value is
"listtab" so for now a hard coded padding has been substituted

http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__1416522_253892949
Added some layout tests for list styles

Added one test for label-alignment styling and another test for
label-width-and-position mode
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
Make page layout lookup code more robust when handling invalid docs

This prevents a null exception being thrown if the requested paragraph
has no details about the associated page style. As a second fallback,
if no style called "Standard" exists, this will fall back to the first
available master-page defined in the ODT.
Clarified ImageController function name
Remove duplicate code in OdfCanvas for finding the master page element
Cope with non-cm image dimensions

Style-related operations are slowly being moved towards px as the
default unit to improve consistency. Standardising getContentSize to
work in px rather than cm provides better re-use of CSSUnits as well.
Ignore test-generated ODTs
Provide better fallback mechanisms for Formatting.getContentSize

getContentSize will now always return a valid page size, falling back
to it's own hardcoded format if no valid one is found for the document
Merge pull request #463 from peitschie/master-page-nullfix

Make page layout lookup code more robust when handling invalid docs