[SD-1216] In some scenarios elastic returns _type in it's response which gets persisted into Mongo. To avoid this refactored remove_unwanted() from archive_ingest.py to archive.py.
[SD-1216]
1. In some scenarios elastic returns _type in it's response which gets persisted into Mongo. To avoid this refactored remove_unwanted() from archive_ingest.py to archive.py.
2. Version wasn't incrementing when state is changed to 'submitted'
3. When a task is created from UI then no versions were being inserted. This throws an error while viewing version history. Fixed this.
4. Modified item_lock.py to send delta for tasks.py instead of whole document.