added event plugin and attribute parser

Including the event plugin in the core for now, however it will be
separated at some point.