Remove dependency on XOM.

One of the dependencies of XOM replaced the DOM classes with buggy
ones. This ultimately made NodeBox thrown an error when a file was
saved in a path with spaces.

I rewrote the NodeLibraryUpgrades to use the standard Document Object
Model instead of XOM, making the error go away.