Add NSPredicate query support to Cloudant Sync.