This commit implements SocketMessage::Query and responds correctly to all of the various StateQuery options when komorebic query is called.