iTunes error codes -50, 1008 and 5002
So I just recently purchased a Mac mini and I started putting my music all into the computer. I logged into my Apple ID and it works fine, but every time I try to update my apps, I get an error code 5002. I thought to myself, "well, this is a Mac, so I know its not a firewall blocking the internet or anything in particular". So I went ahead and tried updating my iTunes Match account while I Googled for the error code 5002. When I updated iTunes Match, it looked as if it was gathering information when all of a sudden, it stops and gives me an error code -50. It said "Genius results can't be updated right now. An unknown error occured (-50). So then I immediately started to worry. I plugged in my iPhone 4S (for the first time) and decided that once in sync mode, it will just update my apps so I don't have to worry about downloading it on my Mac. Well, that is when I received an error code 1008. It wanted me to authotize my computer and when entered my credentials, it said it couldn't authorize it and when I cancelled the process, it gave me the error code 1008. So... I am stuck in a rut since I've spent almost an entire week trying to figure this out with no solution. I have tried signing out and signing back in and nothing. I also restarted my wireless router and no luck. I can't afford to create a new account since I've always had the same Apple ID and I have a BUNCH of media that I have purchased through iTunes, so creating a new Apple ID is out of the question. I can't sync my iPhone, I can't update iTunes Match, and I can't update my apps. I am currently using the 800 dollar Mac Mini.
Mac mini, Mac OS X (10.7.3)