Joel Ewanick was a quickly rising star — and a trusted associate to CEO Daniel Akerson. So why was he unceremoniously fired? Fortune found out what actually happened during his last days at the country’s largest auto maker.