Added Top level TraceEvent validation logic and some refactoring.
Merge branch 'master' of https://github.com/vivekgalatage/libtracing