Added prefix matching via Query.prefixMatchLevel property

Pretty much a direct port of the Objective-C implementation.
Fixes #302