Included Query.php in Base.php as it is used in function query()
Added support for xml response
Updated function query():
1. Added more options while making a http request.
2. Modified code to make use of variable '$raw'.
Added new file with PHP implementation