Implement ping-testing and conditional sync (OMS-239)
Mistake fixes (OMS-239)
Merge pull request #40 from opennode/oms-239

Implement agent connectivity testing and conditional sync/metrics (OMS-239)