An initial implementation of MongoDB storage for bakery.

I'd use bson.D here and below - it's quite a bit more efficient and almost as readable.