refactor(heartbeat): Move machine heartbeating out of agent
refactor(agent): Use heartbeat pkg for job-heartbeating