restructuring, serializer results have both the xml-declaration, tuned the nodeJS serializer
renamed xml.serializeDocToString to xml.docToString
use the new xml.docToString api
whitespace
simple testcase for the serializer