ForwardingStagingDatabase base class

A base class for StagingDatabase implementations that's a composite of
two ObjectDatabase instances, one for the repository db and another one
for the staging area, that forwards calls to one or/and the other as appropriate.