added rudimentary file upload/download, need to beautify it
fixed up file upload, good enough for now