Added upload checks on upload form.

This prevents a possible 1500 xml error in the backend, if javascript
enabled. This may occur when an user clicks upload twice.
Views should use the is_public_list option.
Added a warning, when trying to leave the form.
Save metadata after step 1 also.