feature #4609 : Removing unused code.
Simplifying copy/cut and paste of attachments are now we don't rely on the component behaviour anymore but keep the state of the attachment.
Simplifying the code in pdf export and workflow features as here also the document state is provided by the attachment itself.
Validating usage of versionning as a component property.