Emit global events from inside the lua scripts
Currently we emit global events using an external module disturbed: https://www.npmjs.com/package/disturbed
This means that some operation, for example adding a job to the queue, is executed atomically via a lua script but the event is not emitted until the script has returned. Emitting the event inside the lua script itself has 2 advantages, firstly, it is a bit faster since a roundtrip to the redis instance is avoided, and secondly, it reduces a bit the chances for hazards, where at least we can guarantee that the event was emitted if the operation succeeded. It also makes the code more modular, since the events are actually emitted close to their context, instead of being emitted in an arbitrary place in javascript land.