Every loopback application is an `EventEmitter`. Instead of re-implementing events in `doOnReady`, this line can be changed to `app.emit('ready')`.