net-config: start split out matching and parsing logic

Move this to src/share/net-util.c, so it can be used elsewhere.
rtnl: add support for routes