Prevent duplication in context root if new_document_in_root != true

Should fix #803 & #11310
Prevent duplication of root resources if != new_document_in_root
Make sure resource creation/update takes care of new_document_in_root permission
Take care or contextual menus (create document at root)
Fixed issue on parent validation +
Removed the duplicate button from modAB (related to #10016)
Prevent duplication in context root if new_document_in_root != true

* origin/pr/11312:
  Fixed issue on parent validation + Removed the duplicate button from modAB (related to #10016)
  Take care or contextual menus (create document at root)
  Make sure resource creation/update takes care of new_document_in_root permission
  Prevent duplication of root resources if != new_document_in_root
  Prevent duplication in context root if new_document_in_root != true