add resource agent lifecycle event
Merge pull request #571 from carueda/agent_lifecycle_events

add resource agent lifecycle event