Add persist to resource namespace
Add option 'rev' to function document.put
Add options to method persist in resource namespace
Add design for diffs