Added heartbeat objects to handle the heartbeat packets. UNTESTED. Probably broken.