Read GIF's repeat information from file.

This patch allows sxiv to read gif loop data (inluding number of repetitions) from gif file.

I saw there was a close issue (#101) abut that, so I think I'm not the only one, that would like to see this feature in mainstream sxiv.

It's tested against non-looping gifs, infinitely looping gif's and gif's with N repetitions.