Add support for cancelable async calls.
Socket connects are now cancelable.
Http requests are now cancelable.