A middleware to build web IM with Openfire