Change element implementation to use MutationObserver instead of (deprecated) MutationEvents.

- Added Method XML3D._flushDOMContent that will immediatly flush all stacked DOM changes, updating internal content
- All read-access methods should automatically call XML3D._flushDOMContent to garantuee correct output
Updates several test cases to work with new MutationObserver implementation.