Fixed audio upload bug - and refactored

Fixed the bug where if you press confirm too quickly, the audio blob
does not make it to the backend.