Fix CMakeLists.txt for windows

FILE(MAKE_DIRECTORY ${_tgtdir}/${_subdir}) throws error on ${CMAKE_CURRENT_BINARY_DIR}/webodf/webodfversion.js
As ${_subdir} is an absolute path like /E:/Projects/build/webodf and windows doesn't like concatenate two abolute paths unfortunately
Handles platform-specific file separator in updateJS.js

Currently broken on windows as it uses backslash instead of slash for file separator
Merge pull request #257 from kevinlli/buildfix

Address a couple of build script issues (windows related)
Fix unit test for reading a utf-8 file as binary.
This test was broken because webkit browsers report the request as a string
instead of a byte array. The string has to be converted back to a byte array
in such cases.
Merge pull request #256 from vandenoever/utf8asbinary

Fix unit test for reading a utf-8 file as binary.
Restore the end point of selection range to where it was initially after
splitting boundaries.

Given the following selection <p>a[bcd]<span>efg</span></p> calling the
splitBoundaries at the moment moves the end point of selection to immediately after opening span <p>a[bcd<span>]efg</span></p>
this causes getTextElements (passing includePartial = true) to return
both "bcd" and "efg" which is incorrect.
Merge pull request #251 from kevinlli/splitBoundariesFix

Restore the end point of selection range to where it was initially after splitting boundaries.
Removed all references to node.parentElement (IE compatibility)

Internet Explorer 11 does not support this property on HTML nodes.
Merge pull request #259 from peitschie/ie10-fixes

Removed all references to node.parentElement
Switch arguments of copyChildNodes() to have target first + better API dox
Define arguments to core.UnitTestRunner.areNodesEqual(...) as "actual, expected"

Matches the current logging output and also the order of arguments to isResultCorrect()