Add function to find job array element record
Add job array depenency support

Add support for dependencies of job array elements (e.g.
"sbatch --depend=afterok:123_4 ..."). This does not support
depenendencies of ALL job array elements, only individual job
array elements.
Merge branch 'slurm-2.6'