CBQE-2223: add tuq genrator of queries and results

Example test:
def test_simple_check(self):
        for bucket in self.buckets:
            query_template = 'FROM %s select $str0, $str1 ORDER BY $str0,$str1 ASC' % (bucket.name)
            actual_result, expected_result = self.run_query_from_template(query_template)
            self._verify_results(actual_result['resultset'], expected_result)

where $str0, $str1 will be replaced by string variables, also there are $intX,$boolX, $floatX, $list_strX, $list_objX, $objX

Change-Id: I232c74c89e54d1738ca5a45f6853aeca7f8265db
Reviewed-on: http://review.couchbase.org/36527
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Andrei Baranouski <andrei.baranouski@gmail.com>