This patch adds a new wrapper class for event to hold sanitized traits
and related functions. The parser and helper functions for events are
moved to this new class.
Also, this patch makes sure that each event will be sanitized only once
when it loaded.
Change-Id: I3b941ff531afea20b2403eb391ef49cf08cd65e7