Add support for XMPPServer listeners that will be notified when the server has been started or is about to be stopped.