Added eventlistener system
Implemented event system into app.js
Switched to real event emitter