API overhaul

I wonder if this could be now named something like `$actionFailed`. We can also do away with `$actionError` and `$actionIsComplete` altogether. But I guess these renames can be done in separate PR.