lib,build: port from `atdgen` to `atd2cconv`
lib,test: rename `ready_when` to `done_when`
lib: move more auto-clean code to the `Engine`