Final commit of first version. Changed it so that the "previously played tracks" updates right after player finished playing.