teamd: fix json path parsing

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
teamd: move config related stuff into separate header

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
teamd: config: allow to iterate over keys

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
teamd: use teamd_config_for_each_key in teamd_add_ports

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
teamd: use teamd_config getters in teamd_event_watch_port_added

Signed-off-by: Jiri Pirko <jiri@resnulli.us>