StateServer: Code cleanup -- rename all datagrams to 'dg'. Input datagram is in_dg..