Sleep exactly for the time until next claim instead of fixed interval

This should reduce the load for the website to the absolute minimum.