Enable to pause the repository (#215)

@calmh 
I implement pause in the way that you described in #215.
Some feedback will be valuable.
Ah I see.

I guess you could just move the sleep to the beginning of the loop.
But @calmh probably will find reasons why its a bad idea.

Also, this is a personal preference so I am not suggesting you fix it. Since you are only using `repoid` once, is it really worth defining it?