unittests.py: Stops xmllint from spamming stdout:x
html: Adds xmllint test for html
unittests: de-duplicate HTML test code

this patch makes a single base class for all HTML classes to descend
from, and vastly simplifies the HTML test classes, they are now just 4
variable definitions
unittest: Adds a base class for testing text summary