Use inlineCallbacks

For some reason, using inlineCallbacks seems to produce a proper result
from the doRequest method -- however, in the previous code the returned
deferred had been called but the result was not set.