Merge Matt Ezell's pull request by hand. Make it so that the net_cache unit test doesn't introduce a dependency on qtcore.
Merge branch '4.2-dev' of https://github.com/adaptivecomputing/torque into 4.2-dev
Fixed broken unit test for net_cache.c
TRQ-2127 Put needed break back in and added curly braces to make it correct and for clarity.
Merge branch '4.2-dev' of https://github.com/adaptivecomputing/torque into 4.2-dev

Conflicts:
	src/lib/Libnet/test/net_cache/test_net_cache.c

  Modified unit tests for test_net_cache. Tests were
  failing.
Merge branch '4.2-dev' of https://github.com/adaptivecomputing/torque into 4.2-dev
TRQ-2111. Add a failsafe to svr_setjobstate() ensuring that jobs in a queued state never will hold node resources.
Merge branch '4.2-dev' of https://github.com/adaptivecomputing/torque into 4.2-dev
Unit tests for mom_comm were failing because the mock
for tcp_connect_sockaddr returned a 0 for a socket
handle and later closed fd 0. This cause the fail_unless
function to fail because stdout was now closed.
tcp_connect_sockaddr now returns 10.
TRQ-911 - Define PBS_NUM_NODES, PBS_NUM_PPN and PBS_NP environment
variables for prologue and epilogue scripts. Created new library
function to create environment variables. Refactored other sections
of code to use the new function.
TRQ-2101 Added the resources used item back into  messages mailed out by pbs_server.
trq-2143 Checked for a null pointer.
Updated gitignore file.
trq-1536 Sort nodes while adding them into the linked list.
Correct a bug in get_correct_jobname(). If there were multiple '.' characters in a hostname it would get confused, even with nothing set. This is now fixed and unit tested.
Merge branch '4.2-dev' of https://github.com/adaptivecomputing/torque into 4.2-dev
trq-2152 reallocated a freed pointer to prevent a double free.
Merge pull request #162 from jbarber/master

Set trqauthd to connect to all valid addresses/protocols
Fixed a problem with trqauthd where it would segfault on exit.
We did not handle the case of the active server variable
not being set. TRQ-1247
Merge branch '4.2-dev' of https://github.com/adaptivecomputing/torque into 4.2-dev