Retry the script page request to get the token

After logging in to Jenkins the script console page
needs to be requested again to get the CSRF token.
Merge pull request #1 from zeroSteiner/fix-pr4020-login

Retry the script page request to get the token