Move Event class definition into plugins.base