Async Logout Event

Hi Ronnie,

this is what I hacked together to have a basic handling of logout requests. Seems to work for me.

Peter