Finally figured out how adding works! I'm making this commit just in case I have to erase everything I've done and start from scratch.
Crude version of upload form - with progress bar and button. Needs some cosmetic polishing, but can already be used.
Almost finished file upload interface. Problem with sizes. Rest is working.