Added support for Query returning more than 5K result.
Corrected some output bugs.
Added toXML() to Response object for Webservices Purpose.