Organizing Music

How do you guys keep it all together?

I buy music from whichever place is cheapest. iTunes, Google Music, Amazon MP3 Store... Where ever! I found recently that I have bought duplicates on two separate occasions. What's the best way to keep all my music organized and still be able to sync it to my iPad and GS4? I'm using an iMac.