Best way to clean the gas tank and main fuel line?

tanks are cheap and widely available, replace it. and do the fuel sending unit at the same time-- but keep your lock ring! the new ones are trash.

same with the fuel supply line.

ask yourself what your time is worth vs. new parts that just bolt right in. that energy is better spent elsewhere on things that either cost more or are no longer available.
What he said. ^^^ He beat me to it.
@timk225 Eastwood sells a kit that will coat the inside of the tank after you clean it out following the kit's instructions. It will take you an afternoon. I would only consider that if your tank is in pretty good shape. In the long run, I would do a Google search to find the best price in a new tank. While you are at it, buy the new insulation pad that goes on top. I bought a new sending unit from Classic Industries, and it worked fine.
I realize that different people have different budgets. I really do. If you can afford a new tank, fuel line and sending unit, that is what I would do. Keep the old sending unit just in case.