Fixed line ending issue
Split test in 2 different tests
Made dom scanner faster by making serialid output optional (if you only
validate)
Avoided reconstructing sax filter
Excluded head tag from emtpty check, later neko versions always add it
Added InternalPolicy class to expose getters instead of all those hashmap lookups
Added threadlocal context to dom parser too
Added more getters for internal values
Introduced more internal policy values