Fix a bunch of bugs reported by Coverity.

Conflicts:

	src/include/pbs_nodes.h
	src/lib/Libattr/attr_node_func.c
	src/resmom/mom_server.c
	src/server/req_manager.c
	src/server/req_modify_node.c
	src/server/svr_func.c