Add a marker on resources when they are migrated during loading

This marker is used to force the saving of the resource even if there is 
no logical change (to be compliant with the previous implementation of 
a saving policy).

This marker is cleared when the resource got actually saved on disk.

NB : this commit is a draft only to validate the hypothesis that this
fixes some regression, should not be commited "as is".