More work on GroupManagement. All that needs to be done now is finish
the code to find the primary node in an RM group, and make sure that the
middleware's GroupManagement will do it automatically when it's
instantiated.