Update xml3d.js to version frmo development branch.
Add some debugging functionality.