Added minor low-level optimization to forward-search methods.
Refactored configuration obtention methods.
Added javadoc comments to most interfaces and classes.
Added more javadoc.
Finished code comments in dom package.
Refactored tests, created test for OutputMarkupHandler
Created TextMarkupHandler
Fixed DuplicateMarkupHandler (missing events)