Adding 'group' and 'group_level' support for CouchDB

Adding the possibility to add a 'group' or 'group_level' option when
querying a CouchDB, so reduced results will group correctly.