Separated PlaylistComponent from MainWindow; improved blocking safety; added error messages; small fixes.