Added test for behaviour of attachments not being push replicated for new document revision if only JSON body is updated.
Fixed regression where unchanged attachments get re-sent on every push

Fixes #326
Merge branch 'feature/issue_326'