feat(file): basic file operations

Refactor resource download and deletion into client::do_download
and client::do_delete.