WICKET-4660 Make it possible to notify about Atmosphere internal events

(cherry picked from commit 39c2b674abf79f458417450c37010a353c70917e)