server/v2_client: add func CloseConnections
server: simplify mode transition
server: init store and node in initParticipant func

This is more reasonable because they are used only for participant mode.