Added support for canceling asynchronous requests.

Signed-off-by: Marcel Good <marcelg@ideablade.com>