Move events into app_events.
Cleanup imports and old code.
Rename to publishEvent.