Add ping-pong (heartbeat) to detect if 1 side of a peer connection closes

Add ping-pong (heartbeat) to detect if 1 side of a peer connection closes.

Tested with manually and with "grunt test"