Merge pull request #5 from alexeyvo/development

Update to 0.8.5 and use custom memory management implemented by mongodb
Release 0.98.0!

Signed-off-by: Christian Hergert <christian.hergert@mongodb.com>
build: post-release bump.
doc: fix typos in bson_uint32_to_string docs/comments
Merge pull request #79 from Machyne/master

doc: fix typos in bson_uint32_to_string docs/comments
Fix a bug in json parsing

Fix a bug where we misidentify special mode '$' keys in extended json
parsing.  Basically, we have to verify length for both strings, rather
than relying on prefix matches with strncmp.  We also miscounted length
for the prefix match, allowing any '$' key that started with an '$i' to
match '$id'
Merge pull request #81 from hanumantmk/ISSUE62

Fix a bug in json parsing
doc: fix typo in bson_init_from_json docs
Merge pull request #82 from justincase/patch-1

doc: fix typo in bson_init_from_json docs
Call correct free()
Merge pull request #83 from bjori/patch-2

Call correct free()
doc: fix typo in bson_oid_is_valid comment header
CDRIVER-402: bson_append_null should be used

bson_append_null should be used for marshaling a BSON_TYPE_NULL data
Merge pull request #85 from aksaharan/patch-1

CDRIVER-402: bson_append_null should be used
Merge pull request #84 from Machyne/master

doc: fix typo in bson_oid_is_valid comment header
bson: add check for non-shortest form during validation.
Fixed documentation typo
Merge pull request #86 from edaniels/master

Fixed documentation typo
utf8: short circuit on sequence length based on remaining characters.

If utf8_seq is longer than we have remaining bytes, just skip the further
checks below. Not necessarily faster, but easer to read that it is doing
"the right thing".
utf8: check for non-shortest form using known valid code points

http://www.unicode.org/versions/corrigendum1.html

We need to check that the non-shortest form of the UTF-8 is being used
when validating UTF-8. Higher level languages should be doing this when
they convert to their native string type, but we need it in C as well.

The two-byte representation for NULL is allowed (modified-utf8).