Jabber Gateway Hipchat compatibility improvements

fixes #557, #558, #559