bson: move oid and context into their own file.