Bewest/refactor/events

To discuss mqtt with `core` event processor.