Correctly pass query strings through component wiring redirects and improve format of XML and JSON response documents.