Merge branch 'develop'

* develop:
  Fixed bug in local transfers.  Added more messages to test
  Pass block size over the socket, and ensure full message is read
  Ignore reads that result in zero bytes
  Attempting to use the library with simple worker threads
  Set pull_new_thread to false where relevant
  Code cleanup of main.cpp
  Bug fixes, including not having copied the data block to the new node after retrieval from busy list.  Various code clean up and improvements.  Successful simple test case in main.cpp
  Various bug fixes in an attempt to get basic communication working.  Various debug print statements for debugging.
  finish coding writeToSocket function
  Actually allocate data blocks and add them to the free list during initialization
  Edited Makefile to include pthread library.  Added stdio and stlib to ConnThread
  bug fix
  add methods removehead and addtail in connection threads
  add read and write functions
  connection thread functions added. compiled. not tested yet

Conflicts:
	run_tj.sh
delete 4.9 from the makefile
Merge branch 'develop' of https://github.com/ninerlux/tj into develop
Refactored ConnectionLayer a bit to make the code more compact and readable
merged Andrew's compact connection layer code, substitute memcpy with direct write