lib: add basic interactive “restarting” of targets

One can restart targets that failed, but it does not re-wake-up forward
dependencies.