Add deprecated methods of files and providers during file-refactor back with necessary warnings.

Tested on Mac only. Extended tests on other platforms pending.