Implements support for updating document subfields and replacing entire documents.
Implements check for subfield literals.
Fixes update document validity check.
Replaces undefined checks with _.isUndefined for consistency.
Replaces regex with custom function.
Fixes typo in function name.
Merge pull request #5 from vladlosev/feat-update-entire-docs

Implements support for updating document subfields and replacing entire documents.