Problem/Motivation
Currently file_save_data depends on a number of services and calls logging and flash messages. We should deprecate it, and move it to a service so it can be better tested, throw exceptions and let calling code handle the logging and flash messages.
Steps to reproduce
Proposed resolution
Deprecate file_save_data and replace with a service.
Remaining tasks
User interface changes
API changes
file_save_data, file_move() and file_copy() are replaced with a service and deprecated.