fix return value for submitJobs (integer(0) instead of NULL if all jobs
are already submitted)
change waitForJobs: use done/error i
modified waitForJobs to rely on database instead of scheduler
in first iterations
updated man for waitForJobs
fixed tests to not write into /tmp which is typically not shared
across multiple nodes