Thread: Add a generic AsyncCall class.

The AsyncCall class allows any object to call one of its own methods
asynchronously, with the result going to a given callback.