Added a ping function, which attempts to connect to all the peers in the
group and purges those that it is unable to get ahold of.