Add status callbacks to ernie-api and ernie-engine