Fix repeat mode on playlist change
Refactor settings system. Had a hangover while designing it, sorry.