lua : move backgroundjob out of the lib and to dt.gui