Sent heartbeats put in linked list in pc.c, upgrades to stream library to fix several race conditions.