All client foreach and non thread functions removed, but there are problems removing songs as the wrong id could be tried be removed by the main thread not reacting to deletes changing indexs and ids until too late