Search and Contribute scripts now return xml

Search and Contribute scripts now return their result as xml for easy
processing