Server code for Gloggy (http://glog.gy)