Use less memory when putting docs on couch. Closes #5011.
Make resolve_doc() not use a design document.
Remove old migration script.
Add script for updating design docs.
Fix docstring typo.