Pass query-function a ResumableChunk.
Also change query behaviour on send.
Merge pull request #48 from srijs/more-query-parameter

Pass query-function a ResumableChunk.