Fixed event juggling and made it so that a layer can be DEACTIVATED via the popups tool, refs: geomoose/geomoose#41