Refactors AsBroadcaster and AVM1 events handling
Adjusts swfdec tests