"dynamic_api": replaced to OOP model and added CommonJS support (broken backward compatibility) r4