Updaed TreeBuildingRules for tables and other elements.
Updated main HTML5 class.

It now uses the real library, and matches the DOMDocument interface.