Merge pull request #75 from dimagi/cz

utilities for the common "read/write to all nodes" couch args
add SafeSaveDocument base class