Use more entropy for uniqid, fix heartbeats option name, and introduce heartbeat looper