NETCFG: move netconfig parser into its own file.