(pouchdb/pouchdb#1936) - implemented inclusive_end for query

Added tests, pass the inclusive_end http parameter for
http queries and compute the right endkey when querying
local dbs