Issue4376 ejabberd online group creation

Fixed group creation and use variable for domain name.