feat(DocManagerCache): Add a removeDocumentById() method (refs #4863)

Add a method removeDocumentById() to DocManagerCache's class to remove
documents from the cache by their id, and mark clearCacheDoc() function
as deprecated.