agent: Document and implement cancelling of restjson requests.
web: Tell the channel when a restjson request is cancelled.