requiring a well-formed master URL, ensuring trailing slash
[FIXED JENKINS-21892] Update swarm client to send CSRF token