DB bugfixes, documentation; BSON ext

Fixes errors in the DB library and improves general documentation.  This
commit also updates the BSON extensions with an experimental parse()
method intended to intelligently unwrap BSON data into its appropriate
Ruby type in a behavior similar to JSON.parse().