Use less memory when putting docs on couch. Closes #5011.
Remove old migration script.
Add script for updating design docs.
Merge remote-tracking branch 'refs/remotes/drebs/feature/5011_use-less-memory-when-putting-docs-on-couch' into develop