File uploading

Adds file uploading/replacement, discard and downloading