Remove const overrides since we mock file uploads.
Fix syntax / async issues with file upload modal.

Fixed js syntax issue with early semi-colon.
Fix i18n issue with js multi-line strings.
Fix interleaved callbacks; startUpload could be called before fileupload
callback, so set a constant for startUpload to check.
Fix UI show/hide issues so that the embeddable elements are hidden on
file upload.