Track resource metadata updated when saved. fixes #45