ta is short for thanks as you quite rightly said. Just short for the word I s'pose. Better than saying tha!!

Ta-ta is a shortened version of 'ta-ta for now' (TTFN). No idea of its etymology but it has as much meaning as ciao. TTFN always seemed upper class to me but now I see that it's quite universal and pops up everywhere.