Code for the Google Edge example chat app.