Add mini-promise.
Add events module.