Fix to application/xml output so that valid XML is returned.

Little change to router.js to output valid XML when application/xml is used.  XML requires single root element so multiple results are wrapped with <results><result></result></results> and single result is wrapped with <result></result>.