Implement core emitter
Events in core
Use core with server
Refactor frontend
Use Core emitter instead of the device own emitter.
Merge pull request #1 from brewfactory/feature/core-emitter

[WIP] Implement core emitter