Ok. I was pretty bummed at the ending like you folks and then I heard about the indoctrination theory and all the pieces started falling into place. Just google ME3 Ending Indoctrination theory for further details..
There have been rumors going around that because of the leak prior to the game, BIOWARE had to change the endings and are actually going to release a dlc WITH THE ACTUAL ENDING called "The Truth" completely FREE OF CHARGE.
Take all this with a grain of salt but I'm more inclined to believing the indoctrination theory because the writers at Bioware are too good to have left such glaring plot holes at the end of ME3, especially when everything before that was so amazing. Also if all this turns out to be true Bioware may have just pulled off the biggest trolling attempt ever.