XML: Update xml2json.xsl

Updated to r31 from http://code.google.com/p/xml2json-xslt

Restoring to unmodified implementation so that the local modifications
can actually be tracked through the history.
XML: Don't parse numbers when converting to JSON

This ensures that version numbers are handled properly.