support xml 2.1.0 and api changes

being more consistent with what dart is doing at the moment, the api would change as follows:

req/res.addParams -> req/res.params.add
req/res.length -> req/res.params.length
req/res.fromText -> req/res.fromXmlString