listview.js, play.js: Code cleanup
listview.js, play.js, record.js: More error handling
mainWindow.js: Set the audioProfile correctly on startup