Rearrange things a bit to support multiple NS connections. This is apparently needed for refreshing auth. tokens.