Integrate audio validation and upload

fixes some bugs, and integrates validation with the upload.
see commit messages.

yes, that is because it is between these lines where the actual validations (once determined) need to be put.