CommonJS and ender-inspired require/provide with events