Two former magazine editors-in-chief lost their dream jobs unexpectedly but refused to let termination define them. Their new book offers a roadmap for anyone rebuilding after career devastation.