retry posting if soup fails and/or the session gets lost

Hi,
I guess you want to update the version number if you decide pull it.
This fixes 502 Bad Gateway messages and problems with the session getting lost (server-side problem, too, I think) by trying again a few (5) times with a short delay (of 10 seconds).