Support for additional groups and basic expectations in sockets

Hello, you may want to consider the two commits I made which implement initialization of additional group membership while changing privileges and basic expectation rules on what the SocketResponding condition should read from a socket to consider it alive.