Modified event handling in Plugin

Rather than simply sending all events to the middleware, Plugin now accepts a
lists via the "events" configuration setting, but will default to sending all
events