utils: adds HeartBeat monitor.

Adds a heartbeat helper based on the one that Tom created for Mosto.