teamdctlx: copy code from teamdctl.c and adjust it for libteamdctl
teamdctlx: copy code from teamdctl.c and adjust it for libteamdctl

And do buch of other tweaks

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

jpirko/libteam,marceloleitner/libteam,jpirko/libteam,ekinzie/libteam,marceloleitner/libteam,ekinzie/libteam,marceloleitner/libteam,jpirko/libteam,ekinzie/libteam