Updating to latest implementation of chat tutorial so that it works with latest pomelo.