Add a QueryStats API to StatementResource

This allows clients to poll for the status of a query without actually fetching the data.