Support post query callbacks

The current implementation simply `res.send`s the result data to the client. However, the server may want to hook up events after queries are executed. This enables clients with a way to access data after the query is complete and the response hasn't been sent.