Refactor setupMPD and setupWS, add global list of MPD connections