jobcomp/filetxt - Streamline the code

Eliminate extra variable and avoid changing the contents of a string
Minor refactoring of commit fa0af103d018d6dd783634cdfdc3ae3d5fc4632c
Rename variable bitmap to node_bitmap

No change in logic, just rename a variable for greater clarity
select/cons_res: minor improvement in logging
Improve GRES support for CPU topology

Previous logic would pick CPUs then
reject jobs that can not match GRES to the allocated CPUs. New logic first
filters out CPUs that can not use the GRES, next picks CPUs for the job,
and finally picks the GRES that best match those CPUs.
bug 410
Fix for job requesting GRES on node that lacks any GRES

Previous logic would allocate job resources on such a node
rather than reject the job allocation on that node.
GRES fix for commit 6f50943cbcfe0d9c8155afe3aba0f07af1d3c022

For a system with hyperthreads and GRES bound to specific CPUs,
there was an error in assigning CPUs
Prevent uninitialized variable use

bug 403
Prevent possible zero divide

Not likely, but fixed problem reported by CLANG tool
bug 403
Prevent uninitialized variable use due to bad accounting file

bug 403
Prevent uninitialized variable use

bug 403
Prevent uninitialized variable use

buf 403
Prevent NULL pointer use

Should not be possible, but fixes CLANG bug report
bug 403
Prevent possible zero divide

Should not be possible, but this prevents CLANG error
bug 403
Prevent uninitialized variable

Reported by CLANG, but not possible in practice
bug 403
Prevent NULL pointer error from CLANG

Should not be possible, but prevent CLANG error
bug 403
Prevent uninitialized variables reported by CLANG

bug 403
Prevent possible uninitialized variable use

Fix problem reported by CLANG
bug 403
Prevent uninitialized variable use

As reported by CLANG
bug 403
Eliminate unitialized variables and unused return code

Change trigger_state_restore() return type from int to void.
This eliminates some CLANG errors
bug 403
Fix job trigger logic to correctly handle vanished job

Previously would reference NULL pointer
bug 403