The PlayStation 3 was a troubled machine, launching at a price that gave gamers fits, and using technologies that gave developers headaches. This is how Sony avoided making the same mistakes twice.