Add context columns to object_metadata table and object_metadata_{add,get}.
Partially replaces !418 (closed) (part 2/3)
Not used/tested yet; will be used when I introduce content_metadata_{get,add}.
Depends on !435 (closed).
Migrated from D3356 (view on Phabricator)