detect attachments payloads in _attachments (nice for loading json dumps)
check if _attributes is null
Merge pull request #110 from dimagi/lazy-attachment-doc

detect attachments payloads in _attachments (nice for loading json dumps...