trq-2162 Changed out stringstream for string and made the logging mutexes static so they aren't deallocated before a thread completes.
trq-2162 cleaned up unit tests.
Merge branch '4.2-dev' of https://github.com/adaptivecomputing/torque into 4.2-dev
Fixed a broken unit test.