Simplifying the API

Removing cancelled() and realized(). Renamed deref() to wait().