make lazy attachments save in a single couch request
Merge remote-tracking branch 'origin/faster-lazy-attachments' into autostaging