* Refactor document.js into a class * Move public functions first * Rename private functions * Rename * Rename argument * Use instance of DocumentUtil * Update tests * Refactor * Rename (test-)document.js to (test-)document-util.js
* Add _setSelectedParser helper * Update TextScanner internal options representation * Update QueryParser internal options representation
* Rename files to better match class name * Don't pass setContent to QueryParser; use a generic event instead