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

[agent] refactor serializeEvents
[agent] remove dead code
[agent] fix object proerties specificity bug