Add support for querying field existance

This adds a new query mode which checks if a certain
field does or does not exists.

Change-Id: Ie565c7a8ec86e8bbcaa29157dcf9ae9c44712457