proposal fo interface change

Hey @petrjasek , i need to read the `Date` header from a `query` request in order to use it with `If-Modified-Since` in the following requests. This requires a change in the endpoint. How does this look to you? By the way, i can't make the test pass, i lost my Javascript patience, hopefully fixing it is trivial for you.

This is not ready for merging