feat(api): introduce docManager classe(refs #2785)

adapt test tu use getDocument instead of new_doc
rewrite new_doc
rewrite createDoc
use DocManager in main action and classes
refactor(docmanager): Cache methods are in special class (refs #2785)
feat(docmanager): Update get interface (refs #2785)
refactor(doc): use DocManager getidfromname (refs #2785)
refactor(doc): use DocManager getNameFromId (refs #2785)
refactor(doc): use DocManager getIdfromName (refs #2785)
fix(doc): correct getTitle with arrays (refs #4458)
refactor(doc): use DocManager createDocument (refs #2785)
refactor(doc): use DocManager createTemporaryDocument (refs #2785)
Merge pull request #1131 from Eric-Brison/3.3-I2785

introduce docManager classe(closes #2785)