subdocument tests
subdocument tests
support nested refs
support non-subdocument and nested arrays
factor out write permission check
add support for subdocument writes
adding travis yml