Moved everything related to saving or loading the playlist from/to the state file to playlist_state.c.