Add support for multiple file uploads

Add support for multiple-asset upload. [STUD-648]

Also fixes a bug in which upload asset dialog wasn't reset after closing. [STUD-155]