Apply patch from Sunil to correctly set hostname in systemd environment.
Convert xmpp-pre-hostname-change to python, merge into xmpp action file.
Use mnesia-change-nodename to update ejabberd backup database.
As Sunil suggested, rearrange commands so we can do this with only 1 ejabberd restart.