[#34] Update all commands to use a global event emitter.