Bugfix: RPC: Use pthread_exit rather than returning from the RPC thread, to ensure tidyup gets called
RPC: Move socket tidyup code to its own function
RPC: Clean up mcast socket with tidyup_socket
RPC: Explicitly shutdown communication on client sockets to avoid them being held open by forked processes
Bugfix: Set any listening sockets to close-on-exec/non-inheritable to avoid issues rebinding them on restart
Bugfix: Zero pool "Works"
Merge commit '1ac2181' into bfgminer-3.10.x

Conflicts:
	api.c
Merge commit 'e6afb01' into bfgminer-3.10.x
Merge branch 'cg_merges_20131108a' into bfgminer-3.10.x