Merge resources

Implemented merge for resources & digital objects in the frontend and backend.