Have made (a hopefully final) bug fix for session handling. We will now
use a dynamic TTL based on server responses. This should prevent the
recursive PUT call to sessions, blocking all other activity.