Use less memory when putting docs on couch. Closes #5011.
Remove old migration script.
Add script for updating design docs.