Refactor agent ping resources logic
Merge pull request #48 from ibuildthecloud/ping-refactor

Refactor agent ping resources logic