(Bug 4715) Submit metadata via JS

* submit when the user says to submit
* resubmit, if needed, after all uploads are finished
* tweak styling of the upload form slightly -- don't hardcode colors
* use classes instead of an id