VP-79 Changed order of saving: first contents then document, to correctly
index status of contents (archived/published) with the document
Merge pull request #47 from dlu-gs/hotfix/vp-79-indexing-state-change

VP-79 Changed order of saving: first contents then document, to correctl...