libteam: implement epoll event fd allowing user to poll only one fd

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
teamd: add config option getters

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
teamd: use teamd_config_*_get instead of json_unpack for trivial cases

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
teamd: move load/free config to teamd_config.c

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
teamd: move teamd_update_port_config and teamd_get_actual_config

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
teamd: move json related config things from teamd_ctl_methods

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
teamd: move state json dumping from teamd_ctl_methods

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
teamd: rename "state_json" to "state"

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