Moved upload logic for project files to v0/IO.php. Part of #933