Putting heartbeat related stuff together in heartbeat.go. Passing heartbeats in and out as frames.