Change deleteDocumentWithId return type

Change deleteDocumentWithId return type to NSArray, since more than one document may be deleted
Create Test for deleteById method and fix resulting failure

Fix deadlock where calling a fmdb transaction from within an fmdb transaction
Create test which creates a document tree with two leaf nodes