Fixes uploading files. Adds an "interface" object for external scripting (like wifirepl)