Added helper function for encoding to bson_t
Convert static BSON encode/decode methods to global functions
Merge branch 'bson-decoder-encoder' of https://github.com/10gen-labs/mongo-hhvm-driver into gh37-integrate-bson-handling
Integrated encodeToBSON into rewind / insert / remove / update