Moved and added a PluginEvent base class.

Signed-off-by: Wolftein <agustin.l.alvarez@hotmail.com>