Change sanity check on event listeners to allow closures
Add legacy compatibility for setting logger activated status

Without this a lot of legacy ajax code fails