jwchat setup improvements

Updated 85_jwchat so the hostname it uses can be set by environment variable. If not set, then get the hostname from /etc/hostname if it exists. Otherwise, use a predefined value.

I also updated the script to support the ejabberd 14.05-1 package that is currently in experimental. This version of the package uses a different configuration file.