Simplify bson encode API.
Merge branch 'master' into barnacle
Merge branch 'master' into barnacle
tests for tabletserver bson types
tests for mysql protos.
test for bsonrpc types
add one more missing test
Merge branch 'barnacle'