[#70889056] add agent heartbeat; add integration test

Signed-off-by: John Tuley <jtuley@pivotallabs.com>