[x] Catalogues are stored in the trash when deleted.
[x] Deleting catalogues folds the hierarchy generation, making its parent the parent of its children.
[x] Catalogues can be restored fully, which looks at the current state of the inheritance tree and either makes them an orphaned catalogue that the user must deal with or reattaches it its previous parent and retakes the children that it folded over.
(This is why catalogues know of their children's ids)
[x] Catalogues are stored in the trash when deleted.
[x] Deleting catalogues folds the hierarchy generation, making its parent the parent of its children.
[x] Catalogues can be restored fully, which looks at the current state of the inheritance tree and either makes them an orphaned catalogue that the user must deal with or reattaches it its previous parent and retakes the children that it folded over. (This is why catalogues know of their children's ids)