This is not going to be easy, if you can remove the tank get it commercially steam cleaned, places which can do this are the garages that prepare commercial vehicles for their MOT. replace the pipes and then fill the system with a couple of bottles of baby sterilising solution for baby's bottles and hot water, leave for a day and flush and refil several times. Mark water filler clearly "WATER"!!! good luck