Simple event processing framework.

Request for comments on a simple event processing framework proposal as described in dev ticket #1115. This is currently just a basis, without any actual implemented sinks or any use of this framework inside the monitoring code.

*NOTE: Please do not merge, this is incomplete and is here for discussion.*