(pouchdb/pouchdb#1936) Implemented inclusive_end for query

Right computation of the `endkey` when `inclusive_end=false` in case of a local adapter. For the http one, we just pass it to our http params.