Ukraine's president is shaking up his government just as observers note positive changes in the trajectory of the war with Russia.