added QueryResult class and modified queryAllDocs() and queryView() methods of Couch class