Improve bits of testing framework and standalone
Introducing IPv6 framework broke some SR tests that relied on each partition having the same IP.
- Adapt and refactor the testing framework to simplify fixing such SR tests and share code.
- Make sure standalone puts IPv4 before IPv6 in the partition address list to match this implicit API.
- Cleanup redundant parts of standalone format code.