mod/taskchain fix incorrect TaskChain actions in log table and optimize classes/event/*.php by using a base class