Fix on class not extending commonobject

+ return path after task deletion + start of replacing conf->entity by getentity
You should also remove $db,$error and $errors as they are define in CommonObject