Added helper function for encoding to bson_t
Convert static BSON encode/decode methods to global functions
Merge pull request #28 from 10gen-labs/bson-decoder-encoder

Bson decoder encoder