bug fix race condition: set job state to pending before queueing job.  This way, jobs can start running the moment they are queued
bug fix race condition: set job state to pending before queueing job.  This way, jobs can start running the moment they are queued

sailthru/stolos,sailthru/stolos