Clean up handling of HTML, remove dependency upon SimpleHTMLDOM
Add RDFInstance::$linkFilter to aid HTML serialisation.
Ensure registerPrefixes() is invoked before namespaces(); add unregisterPrefixes().