Make error code more accurate
Fix uninitiailzed variable in test
Provide more precise error messages

Provide more precise error message when job allocation can not be satisfied
(e.g. memory, disk, cpu count, etc. rather than just "node configuration
not available").
bug 836