Improved wrapper of cockpit.file()
path to file
options, same as cockpit.file() plus:
Optional
Read contents of file, reject if doesn't exist && opts.dne
Replace contents of file, maintaining file permissions
New content of file
Resolves with file tag
Improved wrapper of cockpit.file()