Add new timeout class with testcases.
Port the c-based out8 application to the new lib