CB-5406: Extend public API for dependent plugins

The FileTransfer and Media Capture plugins depend on
internals of File; new methods have been exposed for the benefit of
FileTransfer, and old methods restored for Media Capture.