CLI: TCP: Move some code from main.c to tcp_worker.c and tcp.c
CLI: Add failover option parsing from command line
CLI: TCP: Make failover loop
CLI: TCP: Introduce the tcp_endpoint_info structure
CLI: TCP: Rework