play.js, record.js: improve error handling
waveform.js: Reset the wavform size each time it's generated
listview.js: Don't reset the end index

Array.splice doesn't remove the array member.
It sets the member to at the index to null.

Conflicts:
	src/listview.js
listview.js, play.js: Code cleanup
listview.js, play.js, record.js: More error handling
record.js: Add string changes for missing plugins
mainWindow.js: Set the audioProfile correctly on startup