TRQ-2617: job getting stuck in 'new' state on the moms. Added code so that momctl -c <jobid> will clear the NEW state in the mom. (when a commit of a job failed, the mom is stuck with the NEW state). Also fixed the problem where the pbs_server would continue into thinking that the job is running even though it couldn't contact the pbs_mom to commit a job.

(Cherry-pick from 4.5-dev).

Conflicts:

	src/resmom/test/catch_child/scaffolding.c