Enhancement proposal: activity listener

Modeled on post_listener, it provides a callback system for extensions working on the activity page, avoiding the multiplication of setInterval call in each one of them.