Added minimal Promise library D for cx.events