Gateway tweaks
Overall, I was looking to solve the problem where gateways on the same machine were unable to connect to eachother except during testing.
That problem should be approximately solved now, though the build is still failing.
This is under-tested, but a bunch of other small safety features have been added. There is still some work to go.