modify handlers to accept query string

Ah, you're right. In that case, let's just name the argument ``result`` which seems to be a fairly standard name for Twisted deferred results passed to callbacks.