fix(offline): Clear referer reference after save waiting doc (refs #4863)
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.
Merge pull request #1210 from eguaj/3.3-A4863

fix(offline): Clear referer reference after save waiting doc (closes #4863)