Forked form hupchat gem, but with many modifications needed by Betazeta IT Team (a.k.a. BIT)