Simplify duplicate code
Move externs to header file
task/cgroup make TaskAffinity=hard bind to threads instead of cores.
Add a new pending reason WaitingForScheduling which indicates a job has
not been processed by the scheduler yet.
Fix a typo in scontrol.1 man page.
Update NEWS file.
Avoid slurmctld crash getting job info if detail_ptr is NULL.
Merge branch 'slurm-14.03'