Added handler for heartbeat messages.
Added a message parser for cohorts.