Add M::Config::Cached::Network::cleanupNetworks()

The networks.conf file was not properly cleanuped when changing the IP
address of an interface or when removing the IP address of an interface.
Coding style cleanup