Ensure that EE Agent is listening before sending heartbeats
Merge pull request #576 from oldpatricka/ensure_ee_started_before_heartbeats

Ensure that EE Agent is listening before sending heartbeats