Rename DocProxy to DocRevisionProxy, check for integral doc id