xml2Collection.js fully generic with tests

Content-Desc header can be specified for xml schema type.
niem/xml is default if no Content-Desc header is supplied.
Also did some refactoring to simplify xml2Collection.transform