fixed digest auth. wip on xml-formatted queries and conversion to valid JS objects.