Revert "Revert "save GoToNextVersion in history""

This reverts commit afdb35c16c081915362d797b36684f658ae6faa2.
save CraftCodeGenerator in history
add generated craft code classes