Change XML parsing script - no more recursion
Change XML parsing script - no more recursion

The XML parser now no longer uses a recursive function, and instead uses
what seems to be a better XML parsing module. It is now able to detect
when a particular element begins and ends, rather than simply counting
 folder elements, which allows for easier record-keeping while attempting
 to keep track of elements' parent names at different levels.

 This necessitated some changes in the '-f' vs regular mode as well. The
 '-f' flag now filters categories at a later stage, to allow the same parsing
 function to move through and collect file info in both modes. A result
 of this is that the file category numbers for the filtered mode are no longer
 fixed - the category numbers are built after filtering has already occurred.
 With that effect now gone, filtering isn't of obvious benefit, and may be
 removed in a future iteration.

calizarr/jgi-query,glarue/jgi-query