Moving some of the network data structures used by all three of the main scripts into a common module.