Moved DiscardMarkupHandler to its own package.
Minor refactoring and added javadocs to seletion artifacts.
Finished refactoring and javadoc comments.
Fixed bad default HTML configuration: unique attributes was set to true.