Add a REST endpoint and UI functionality to be able to copy a data source (and optionally its points).
/v2/data-sources/copy/{xid}
Note this issue about performance which has been taken into consideration in the design of the endpoint:
MangoAutomation/ma-core-public#681