SocketComm updated

Rewrote part of inputWorker for SocketComm. Needs testing.
Commented out unnecessary code in SocketComm. Will confirm with CBH
before removing completely.
Hid potentially unsafe Count method in ThreadQueue.
Cleaned up ThreadQueue a tiny bit.