Clean up lib/events a bit
Fix the pre-Fx23 path for getting event listeners