Unit tests for DOMTreeBuilder begun.

Minor bugs fixed, too.
Moved to Elements::TEXT_RAW for Tokenizer.
Removed deprecated constants.
Added attribute handling.