app: add file-remote.[ch] which implements uploading/downloading

and will make the file-uri plug-in obsolete.