tmb_module: added module base class

use worker thread for mpc module
tmb_main: rename main class

process main event queue and call functions