bson: extract oid and context into their own headers.

I'd like to extract their implementations too. But that will depend on
what needs to happen for the various generation functions.