[agent] refactor serializeEvents
Merge pull request #124 from jasonLaster/refactor-events

[agent] refactor serializeEvents