Simplifies the device manager code as we don't have to duplicate the IP/network matching logic there.
Also add a test to verify that we're loading the config correctly.