working logic for repeat

Shamelessly replicating the pull request I already submitted to gnome-prototypes-team:
As the title said, I implemented the repeat mode (none, song, all). The only missing part is the gui interaction, but you can test by changing the repeat attribute of the player in the init.