Events in core
Use core with server
Refactor frontend
Use Core emitter instead of the device own emitter.