Update XMPP and mDNS when changing hostname

1. Modified hostname-change to restart avahi-daemon.
2. Added an action to run before hostname-change, to backup ejabberd database.
3. Added an action to run after hostname-change, to update ejabberd and jwchat to the new hostname. It can take a few minutes, so it's run asynchronously.