Lightweight event monitoring and observation in Firefox addons.