XML parsing

* Merges the xml branch into master
* (XML) Better disambiguation of paragraphs
* (XML) Better "collapsed" markers parsing
* (XML) Italic levels of hierarchy
* Allow both xml and plain text regs to run